From: Fabio Estevam Date: Sat, 4 Jul 2015 18:27:34 +0000 (-0300) Subject: rtc: armada38x: Remove unused variable from armada38x_rtc_set_time() X-Git-Tag: v4.9.8~3889^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d80238bbcad33218c8d34662f144dfb146c2d57b;p=platform%2Fkernel%2Flinux-rpi3.git rtc: armada38x: Remove unused variable from armada38x_rtc_set_time() Remove the 'flags' variable in order to fix the following warning: drivers/rtc/rtc-armada38x.c:91:22: warning: unused variable 'flags' [-Wunused-variable] Signed-off-by: Fabio Estevam Signed-off-by: Alexandre Belloni --- diff --git a/drivers/rtc/rtc-armada38x.c b/drivers/rtc/rtc-armada38x.c index 4b62d1a..2b08cac 100644 --- a/drivers/rtc/rtc-armada38x.c +++ b/drivers/rtc/rtc-armada38x.c @@ -88,7 +88,7 @@ static int armada38x_rtc_set_time(struct device *dev, struct rtc_time *tm) { struct armada38x_rtc *rtc = dev_get_drvdata(dev); int ret = 0; - unsigned long time, flags; + unsigned long time; ret = rtc_tm_to_time(tm, &time);