Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp3475688ima; Tue, 23 Oct 2018 06:35:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV63/3G9KbRD1WDt+06pCOfToAjDg9S/IweY6sjn5JttYl9Bx7XCTQgKqDCHk4fLQYKHgzF7x X-Received: by 2002:a62:3245:: with SMTP id y66-v6mr40687700pfy.72.1540301717081; Tue, 23 Oct 2018 06:35:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540301717; cv=none; d=google.com; s=arc-20160816; b=1JjJm6Hycx4zhIL0Am+8n03koYBtREjDWsDDNBK4RnyLqlI3al54zEdOwnTF4kfEEa 2nSdr03kpm37ovBZ/WlMxkPInAskclYX7WC900K2r/Eu/sMdEbqBqW2kMxDpQBbswSv0 FUNdEbIgu2NVziW6qJJRogIKOcWYs/AfRvkvtTh315oag5RNDcPaPoaUTVgaQlvBO5k7 XsrZFTIID1bUSsQB8NvT9TC1wJHHzIdTzCXtG7EGT9Ck8cDeYE19VRImyxJKrRrA44mm U+Bjm+rKaWw5RdkUqxlvcYuWhvyT2xFWOIxqeIfCTeptNRgpLBFtjx6qZxXnWWEwXOrs flOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=zg4Wa24233FnboW9BHEv56fSNBgssevYBxCG1whsNK8=; b=0o12BICbJa8EDVZkXBfZpY55ZSynID1dq22mt1VHlozD1DSgEAUPuKTozpaTopOnDb lp1ZLg0jItSULrLHheuT0vobnPQgH1d/CzpdQ6yfdze6go3o0m1juOXhp55MPtQ/rnHQ TUj9Oe1XP9EK/IbTNPbmZu5Nd533yFcIxwkKeSS5X4/deVt15C/FdJw6BoYkgRS/JZyI MSbF90Kt1X6/WHFBDb0cd85uMd1zsLXYBe174jBiHDUnCOE0wpSwYQRNFJLcx4h94Exa tZ8rdkGkldbLxsg/irzsyTCo/IGAVf7EE8R16GPuz7kMoLUR9K2jjT6jcdLJo5/VLU8u 61UQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d81-v6si1408587pfm.40.2018.10.23.06.34.59; Tue, 23 Oct 2018 06:35:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727829AbeJWV5r (ORCPT + 99 others); Tue, 23 Oct 2018 17:57:47 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:60373 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726277AbeJWV5r (ORCPT ); Tue, 23 Oct 2018 17:57:47 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id AD0F91356CD48; Tue, 23 Oct 2018 21:34:13 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.408.0; Tue, 23 Oct 2018 21:34:13 +0800 From: zhong jiang To: CC: , , Subject: [PATCH] pch_uart: remove set but not used variable 'tx_empty' Date: Tue, 23 Oct 2018 21:21:34 +0800 Message-ID: <1540300894-27202-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tx_empty is not used after setting its value. It is safe to remove the unused variable. Signed-off-by: zhong jiang --- drivers/tty/serial/pch_uart.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c index cb85002..9ed121f 100644 --- a/drivers/tty/serial/pch_uart.c +++ b/drivers/tty/serial/pch_uart.c @@ -933,7 +933,6 @@ static unsigned int dma_handle_tx(struct eg20t_port *priv) struct scatterlist *sg; int nent; int fifo_size; - int tx_empty; struct dma_async_tx_descriptor *desc; int num; int i; @@ -958,11 +957,9 @@ static unsigned int dma_handle_tx(struct eg20t_port *priv) } fifo_size = max(priv->fifo_size, 1); - tx_empty = 1; if (pop_tx_x(priv, xmit->buf)) { pch_uart_hal_write(priv, xmit->buf, 1); port->icount.tx++; - tx_empty = 0; fifo_size--; } -- 1.7.12.4