Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1931035ybv; Fri, 14 Feb 2020 08:25:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxi6jHyoZ8tTUd3Jbt4n/H8we09PGvHvEQ9LFdUXAiPqCpq/4q2avJO8ljDammjyV68hTOQ X-Received: by 2002:a05:6830:16c5:: with SMTP id l5mr3038310otr.165.1581697536512; Fri, 14 Feb 2020 08:25:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581697536; cv=none; d=google.com; s=arc-20160816; b=QYwwKf5I9+5xFCu2yvkXJC0QMvyfO2rJv03lg5A2ATfpVq48SG0lrM0usAZjnodwls V5hK3f8ldRqT7libNNQVI86xts7zPbZkyK3D+FB7ZQvdXesWCm3LDRVCYusn2WPQKPNs ut77fek1ZF4TxhrpZ3IHN8nCywMVV/piH9gBDzaKo/k4aEz7uXS+pk7Ch/m5cNygtHWA cBA2BxCYny0vHExmXMP1N+F91t4EMvCWmpolSNnrwudPT9Ee6u2zivz6sR0aIoIRgg7H L2QWcmcchTJgqRrBn+Ue3ZijgTne7nph68F30yLU3Wp5+QBpPLvYSmSGZWwy/Tc/RgqZ miHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xfYDVCz0xoOb7xOTroTr9+XuQirswx7gqzT86qtAgek=; b=iVWMH3npOX/LcpkBCpVF3On9y9x0HPufB0y9n4jrUxOYdFedqAFyiH3+L6UHwwZKUz KV0rxgKPQuAlpJr5vKdoWoXj7VdxTPrweRKB0DenvAKAaHnVrEvE7/uGVwZ43LaFKzOV 3ptfO0ACKDJdqvrkO+L/OzOa6XoO6EyaDGHSmy2G4NqdMR7cdGfGpHDouG33UZgu27rH yaUzt37FesCtQCGrh7dILPPNPo8Ownkkw3m/F4Nww1VXLjNl476OJ1kRrQVK3xLtiLbJ NkfpOe3fK1vBVuWuXe2UjSwJMkXKaH2FcKiMXrC5htnfu3eV3hLbF9w9KmFmPqvRzcAD VyXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=B7ZdEAOu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g26si3087110otk.324.2020.02.14.08.25.24; Fri, 14 Feb 2020 08:25:36 -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; dkim=pass header.i=@kernel.org header.s=default header.b=B7ZdEAOu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405861AbgBNQYT (ORCPT + 99 others); Fri, 14 Feb 2020 11:24:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:58152 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405473AbgBNQWd (ORCPT ); Fri, 14 Feb 2020 11:22:33 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B0B532475A; Fri, 14 Feb 2020 16:22:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697352; bh=S9glgjZI6VlDqaayBfQyTvToeDmW9qugXDZfdQCbYp8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B7ZdEAOuleYDA/iD/17nYRU9M28nB+G/NWQvtuZoiPn+iEONxL/1O3Xyq7QOg8vMR OiU27uCKgBci8xgcbGfs0TnkcoukeUTPg7T3zqkrorzfWriIRtHYqU+bNjQ/9PyfJ/ G2LlrWLb8JrOqs2R2BUlIX0t6jToRWunotuXthAg= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Xiongfeng Wang , Hulk Robot , Greg Kroah-Hartman , Sasha Levin , linux-serial@vger.kernel.org Subject: [PATCH AUTOSEL 4.9 055/141] tty: serial: amba-pl011: remove set but unused variable Date: Fri, 14 Feb 2020 11:19:55 -0500 Message-Id: <20200214162122.19794-55-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiongfeng Wang [ Upstream commit 94345aee285334e9e12fc70572e3d9380791a64e ] 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 Link: https://lore.kernel.org/r/1575619526-34482-1-git-send-email-wangxiongfeng2@huawei.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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 f6586a8681b9b..8781a4fa64907 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -1456,8 +1456,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; @@ -1469,8 +1467,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) -- 2.20.1