rtc: armada38x: Remove unused variable from armada38x_rtc_set_time()
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 4 Jul 2015 18:27:34 +0000 (15:27 -0300)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Fri, 17 Jul 2015 22:42:31 +0000 (00:42 +0200)
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 <fabio.estevam@freescale.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-armada38x.c

index 4b62d1a..2b08cac 100644 (file)
@@ -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);