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)
commit8856541557f3626beec43aa0821b2e0f031f0153
tree3cd67354513f2d3a313d84b7c01564ac6d5b1d15
parentc842697c741e9dbf825e07d4c2724685d6464bd0
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>
drivers/rtc/rtc-sh.c