summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorAnders Roxell <anders.roxell@linaro.org>2018-07-27 17:10:15 +0200
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-07-27 17:27:40 +0200
commit8856541557f3626beec43aa0821b2e0f031f0153 (patch)
tree3cd67354513f2d3a313d84b7c01564ac6d5b1d15 /drivers/rtc
parentc842697c741e9dbf825e07d4c2724685d6464bd0 (diff)
downloadlinux-stable-8856541557f3626beec43aa0821b2e0f031f0153.tar.gz
linux-stable-8856541557f3626beec43aa0821b2e0f031f0153.tar.bz2
linux-stable-8856541557f3626beec43aa0821b2e0f031f0153.zip
rtc: sh: remove unused variable rtc_dev
When building rtc-sh, rtc_dev isn't used in function __sh_rtc_periodic. drivers/rtc/rtc-sh.c: In function ‘__sh_rtc_periodic’: drivers/rtc/rtc-sh.c:146:21: warning: unused variable ‘rtc_dev’ [-Wunused-variable] struct rtc_device *rtc_dev = rtc->rtc_dev; ^~~~~~~ Remove the declaration of rtc_dev to dispose the warning. Fixes: ec623ff014c4 ("rtc: sh: remove dead code") Signed-off-by: Anders Roxell <anders.roxell@linaro.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-sh.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c
index abbce362f4df..0fbd36e2afa6 100644
--- a/drivers/rtc/rtc-sh.c
+++ b/drivers/rtc/rtc-sh.c
@@ -142,7 +142,6 @@ static int __sh_rtc_alarm(struct sh_rtc *rtc)
static int __sh_rtc_periodic(struct sh_rtc *rtc)
{
- struct rtc_device *rtc_dev = rtc->rtc_dev;
unsigned int tmp, pending;
tmp = readb(rtc->regbase + RCR2);