Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp450578ybl; Fri, 6 Dec 2019 00:10:48 -0800 (PST) X-Google-Smtp-Source: APXvYqwPPqscusjOfvTVEwqE7NEhaJEU7R7HvFkjaeAMUC3vPZaLN62gywWB1X0aSIJqjJs/ZeKr X-Received: by 2002:a54:4407:: with SMTP id k7mr11491576oiw.56.1575619848369; Fri, 06 Dec 2019 00:10:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575619848; cv=none; d=google.com; s=arc-20160816; b=nAagKSs9AXXmeEOJZSbS0cDKt/CukxiUWZxrGtpbGk7nktvQanTlbJTeN4H++paRSo 6WcAbEM6nEN+6I3UCY3jdkBFVpBVKdKlWEQncC4Z3Zc6cOZU7ycZPb2MiSXFdRh2GnWY 8/DmGHHJW7aHq5C2XrJpnGz10bKyjPAFE+bRwLbZ2gUZZTNPS4Tc5LW4qjPeArBd1+9l sM+pZmzK8qQ1XWvxXo6VtgvyzIILvhrRyvYaEESOnHoQ8JdCaZG/4HBKFH6feKORnEU8 uXXb47QHdBYVr13lFIZpAgsSyrNAX8Xq9ZCYmdXrYBIl3oFpjbPusyMUOcWw44mxsIgv QKWw== 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=RGdvAl/3h2oOlWrz9T+VxU5Rz5dVsNYrWexVufXfrYQ=; b=Tvp4QuIz5MHx1Qrf6vH1+TGDAV2hftuIoa8gIRSQJLYSIpmZIFG5EYYUtwhFNC3wKo RO5n5SicHfXg+Fhpit80NyusAgIapBAkdWnrZso2yGC8f/+kSeGJ/n6sfRzFbNfelXzh JXTWa4aVliLvaTErIGjhINNQAXQ3LaIsPRIf964KWAHYZ0xaA6X4q0D7OaA+9oFeNmU9 TBW9AQ6OK/blMpk+CA81dLL+y8xMyKqwXvnyzfTPjsTAEJgGBya7ZYr1lpx6JbxDoiJQ LDExuYhJ9u8QacPVpHzIOPNBeatNj5S45h9RxqcXU8kT6WPIkDms1HdZR512MGKwD5gP DS/Q== 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 i198si6483190oib.111.2019.12.06.00.10.35; Fri, 06 Dec 2019 00:10:48 -0800 (PST) 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 S1726677AbfLFIJ6 (ORCPT + 99 others); Fri, 6 Dec 2019 03:09:58 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7645 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726203AbfLFIJ6 (ORCPT ); Fri, 6 Dec 2019 03:09:58 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 4CD1E7533FAA2136108F; Fri, 6 Dec 2019 16:09:56 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.439.0; Fri, 6 Dec 2019 16:09:50 +0800 From: Xiongfeng Wang To: , , CC: , , Subject: [PATCH] tty: serial: amba-pl011: remove set but unused variable Date: Fri, 6 Dec 2019 16:05:26 +0800 Message-ID: <1575619526-34482-1-git-send-email-wangxiongfeng2@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 Fix the following warning: drivers/tty/serial/amba-pl011.c: In function check_apply_cts_event_workaround: drivers/tty/serial/amba-pl011.c:1461:15: warning: variable dummy_read set but not used [-Wunused-but-set-variable] The data read is useless and can be dropped. Reported-by: Hulk Robot Signed-off-by: Xiongfeng Wang --- drivers/tty/serial/amba-pl011.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 4b28134..c5e9475 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -1452,8 +1452,6 @@ static void pl011_modem_status(struct uart_amba_port *uap) static void check_apply_cts_event_workaround(struct uart_amba_port *uap) { - unsigned int dummy_read; - if (!uap->vendor->cts_event_workaround) return; @@ -1465,8 +1463,8 @@ static void check_apply_cts_event_workaround(struct uart_amba_port *uap) * single apb access will incur 2 pclk(133.12Mhz) delay, * so add 2 dummy reads */ - dummy_read = pl011_read(uap, REG_ICR); - dummy_read = pl011_read(uap, REG_ICR); + pl011_read(uap, REG_ICR); + pl011_read(uap, REG_ICR); } static irqreturn_t pl011_int(int irq, void *dev_id) -- 1.7.12.4