From: Anders Roxell Date: Fri, 27 Jul 2018 15:10:15 +0000 (+0200) Subject: rtc: sh: remove unused variable rtc_dev X-Git-Tag: v4.19-rc1~77^2~11 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8856541557f3626beec43aa0821b2e0f031f0153;p=users%2Fjedix%2Flinux-maple.git 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 Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-sh.c b/drivers/rtc/rtc-sh.c index abbce362f4df9..0fbd36e2afa6d 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);