]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit397bb3d6dbd3a8a40976b61ea13fd7f5f1092418
tree3cd67354513f2d3a313d84b7c01564ac6d5b1d15
parentb1dfbe9ffd5703ad710d64f720b1b29d62cc0d23
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: 549c7b038132 ("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