Remove the 'flags' variable in order to fix the following warning: drivers/rtc/rtc-armada38x.c:91:22: warning: unused variable 'flags' [-Wunused-variable]
Unified · Split
| @@ -88,7 +88,7 @@ static int armada38x_rtc_set_time(struct device *dev, struct rtc_time *tm) · 87 unmodified lines | ||
| 88 | 88 | { |
| 89 | 89 | struct armada38x_rtc *rtc = dev_get_drvdata(dev); |
| 90 | 90 | int ret = 0; |
| 91 | − unsigned long time, flags; | |
| 91 | + unsigned long time; | |
| 92 | 92 | |
| 93 | 93 | ret = rtc_tm_to_time(tm, &time); |
| 94 | 94 | |