]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
rtc: sh: remove unused variable rtc_dev
authorAnders Roxell <anders.roxell@linaro.org>
Fri, 27 Jul 2018 15:10:15 +0000 (17:10 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 27 Jul 2018 15:27:40 +0000 (17:27 +0200)
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>
drivers/rtc/rtc-sh.c

index abbce362f4df94ea90e199a6c41c3e4eb54bc8da..0fbd36e2afa6d49811451cb11d828469aa4d2fda 100644 (file)
@@ -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);