Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4825990pja; Fri, 22 Nov 2019 02:29:26 -0800 (PST) X-Google-Smtp-Source: APXvYqyiDpeAVGwQR4gVGX/UhXCRgkKqk9EVExsjMy6Xxo7WC9pPwf3skeGS1HKf8oZoxJ09x0pL X-Received: by 2002:a50:ed12:: with SMTP id j18mr166327eds.172.1574418566075; Fri, 22 Nov 2019 02:29:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574418566; cv=none; d=google.com; s=arc-20160816; b=uXGVVawcDiN5LL+f4FKMtv6HsOHPFKjaMwR+bdhyi3etTbEns4oxSzFK0AjU36UhDG fZ0NWUH3WRvKkCssAu7+Ff9Xdmgf0qG1lirzbwa+sBowIl/7KLtxuaCBhx6F4paI1E0X Em/7ZSoVoCuwrocVd3sYZd9tALJd/gO6SSFIwtw07D2TiKWhq09Wl/UcEg3xP4sZxmqB UUNw5/rEgsampBXYmPv3oYaUKrbASgIq3KbZaF2GzupezG0K9eWBbkyuLdbMzkpmTOQ/ PMezYDJC96t2RXhjjY7SCNFQg439IDgPgtUVNxAez6v+CogIkUzQBJ8sFYpsHDaPgoXK hc6A== 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; bh=OCrUsp0BNfzsxmrBryhLCqc9aBGdfSxJMVKoXnMg3HI=; b=cTwUlxc7se61YLIoVKxGwgFLJ/eJjMl33fR3rcZGoyjWotovfkKNBRRyMYCy13Rrxc 4epUjc3cTGiJbt1lpD2CU9CR45Zkm53MJs/XBI29GrF/1+5AjyIyqwAuPGUa/2mHWrUC f1NvvEHYhHz7gnS+YhY9rWnFWybsU/tKIGf96wrQATazmgkyRgZAKIWtAb5lC9pe4bH8 JvXGhtbc4zMEj5oN4sxZTxkLz212ehVgXvrehQIsTCntCTnl50fTkFm9/9PXNUveK68+ BHBONFw1quUAgQRe2CCyf1Y97DH3NJltyuy2rf/RV8Ziqv87NiOp1JEcG0F9BCXc2mjV yTYA== 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 g30si858937edf.362.2019.11.22.02.29.01; Fri, 22 Nov 2019 02:29:26 -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 S1726792AbfKVKZC (ORCPT + 99 others); Fri, 22 Nov 2019 05:25:02 -0500 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:49507 "EHLO relay8-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbfKVKZC (ORCPT ); Fri, 22 Nov 2019 05:25:02 -0500 X-Originating-IP: 92.184.97.94 Received: from localhost (unknown [92.184.97.94]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id 5741D1BF210; Fri, 22 Nov 2019 10:25:00 +0000 (UTC) From: Alexandre Belloni To: linux-rtc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Alexandre Belloni , Thierry Reding , Jonathan Hunter Subject: [PATCH 7/8] rtc: tegra: remove set but unused variable Date: Fri, 22 Nov 2019 11:22:11 +0100 Message-Id: <20191122102212.400158-8-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191122102212.400158-1-alexandre.belloni@bootlin.com> References: <20191122102212.400158-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following warning: drivers/rtc/rtc-tegra.c: In function ‘tegra_rtc_read_time’: drivers/rtc/rtc-tegra.c:106:11: warning: variable ‘msec’ set but not used [-Wunused-but-set-variable] Cc: Thierry Reding Cc: Jonathan Hunter Signed-off-by: Alexandre Belloni --- drivers/rtc/rtc-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c index 0159069bb506..7fbb1741692f 100644 --- a/drivers/rtc/rtc-tegra.c +++ b/drivers/rtc/rtc-tegra.c @@ -103,7 +103,7 @@ static int tegra_rtc_read_time(struct device *dev, struct rtc_time *tm) { struct tegra_rtc_info *info = dev_get_drvdata(dev); unsigned long flags; - u32 sec, msec; + u32 sec; /* * RTC hardware copies seconds to shadow seconds when a read of @@ -111,7 +111,7 @@ static int tegra_rtc_read_time(struct device *dev, struct rtc_time *tm) */ spin_lock_irqsave(&info->lock, flags); - msec = readl(info->base + TEGRA_RTC_REG_MILLI_SECONDS); + readl(info->base + TEGRA_RTC_REG_MILLI_SECONDS); sec = readl(info->base + TEGRA_RTC_REG_SHADOW_SECONDS); spin_unlock_irqrestore(&info->lock, flags); -- 2.23.0