From patchwork Mon Jul 11 21:42:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102031 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp152581qga; Mon, 11 Jul 2016 14:40:42 -0700 (PDT) X-Received: by 10.98.75.219 with SMTP id d88mr1671511pfj.91.1468273242281; Mon, 11 Jul 2016 14:40:42 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si212198pfa.167.2016.07.11.14.40.41; Mon, 11 Jul 2016 14:40:42 -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 S1752877AbcGKVkk (ORCPT + 30 others); Mon, 11 Jul 2016 17:40:40 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:52018 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751153AbcGKVki (ORCPT ); Mon, 11 Jul 2016 17:40:38 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue102) with ESMTPA (Nemesis) id 0MPp7i-1bRec20Emw-0054f6; Mon, 11 Jul 2016 23:40:12 +0200 From: Arnd Bergmann To: Alexandre Belloni Cc: Arnd Bergmann , Alessandro Zummo , Javier Martinez Canillas , Sudeep Holla , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Krzysztof Kozlowski , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org Subject: [PATCH] rtc: isl12057: remove unused variables Date: Mon, 11 Jul 2016 23:42:57 +0200 Message-Id: <20160711214340.2574022-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:E67dLsOZakLIGnABVqJ1323dAz/WK9faAAdLeeRtWv/ad8Q1YW+ LGsVezM4mF/Nc34lPN9YnAWCFnL/vMkMT/w1Rt6UVyFbhLxw32gQWlZW7tzxiryrXkbeGAn dN109EtBdow6beIJyT5k4g/xrzSK6MkPXLkcXF6CWs1HTrN9xctE0OSNZx8HemJrc/ogKBC 0wCI8kzvRLwBb+exGh7/g== X-UI-Out-Filterresults: notjunk:1; V01:K0:PqlxgWMKuls=:Zkn7eu0tMSXXwjiqtbyF99 16dRlpdzRolJnK5QMy9ckq96/i769iLIHJkZyqxkBjNKaHAb+D6mrLC8K3rjNdHhskD4zGEPK uvHe9tJVK70Z2n251o7XM0rp0tSJ432NodPYHKo+FTADKw9Zet59iGU8FPKkwelaUIiQS0g8u MgFsLilEaMZ8RxyiC1zJKe05dtVq0TBhyFolMD6Pn9oPHg8nfrWN00EvshxuAtzWpaLtTlyvD pjr9iRqGnS7czTuw2zb0oLZlsYPQwDBPCxadqTx9gH3gQPmxsEOorciLJXhTBn5VeSqEfCTIA teZPg7y2ysxND9ca1IwBpoMTELedkCMRK/7gtIg23KRrlAEuj04eDwM9nZuyOZgD/jAfpneyL 4mSAbAUU45x1wvOxIVcdbGDyXpEUWGFSIlsn/9r7ALGeyMg6szQ5ZpeyuoZEusZqVBXqBSO2C 5TKRY84vitbLmRSRAwGUSD6skTiYjb01BGHq0B9EbAxodS9TfEWBBdiAZce6IocdoPwGyoOJu kf8ItS0Wsea0Enn6Zq2PzjSwgMxsOu6hBnK97hbYWw1FNvQWQ1x05An0r/YPgEgcJTmANL5R1 tdScOz4Ow3CVLUnIfMOz1t8nTKINQ/mjZxBS4U2iyTKrhZL+z9QH2DMAZP+VoqWAmRAkfj2Ga BI7OnEqeugNRmqE5uJppdNjHU47l4iU6I2suXY+XMKTuPkUJQkrch3mYwnTlqfm0RE7g= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A cleanup patch introduced a harmless warning about now unused local variables: drivers/rtc/rtc-isl12057.c: In function 'isl12057_rtc_read_alarm': drivers/rtc/rtc-isl12057.c:249:26: error: unused variable 'alarm_secs' [-Werror=unused-variable] unsigned long rtc_secs, alarm_secs; ^~~~~~~~~~ drivers/rtc/rtc-isl12057.c:249:16: error: unused variable 'rtc_secs' [-Werror=unused-variable] unsigned long rtc_secs, alarm_secs; ^~~~~~~~ drivers/rtc/rtc-isl12057.c:248:18: error: unused variable 'rtc_tm' [-Werror=unused-variable] struct rtc_time rtc_tm, *alarm_tm = &alarm->time; ^~~~~~ This removes the variables to shut up those warnings. Signed-off-by: Arnd Bergmann Fixes: 4e30a585a343 ("rtc: isl12057: let the rtc core interpret the partial alarm") --- drivers/rtc/rtc-isl12057.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.9.0 diff --git a/drivers/rtc/rtc-isl12057.c b/drivers/rtc/rtc-isl12057.c index e0245fc6205e..0e7f0f52bfe4 100644 --- a/drivers/rtc/rtc-isl12057.c +++ b/drivers/rtc/rtc-isl12057.c @@ -245,8 +245,7 @@ static int isl12057_rtc_update_alarm(struct device *dev, int enable) static int isl12057_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) { struct isl12057_rtc_data *data = dev_get_drvdata(dev); - struct rtc_time rtc_tm, *alarm_tm = &alarm->time; - unsigned long rtc_secs, alarm_secs; + struct rtc_time *alarm_tm = &alarm->time; u8 regs[ISL12057_A1_SEC_LEN]; unsigned int ir; int ret;