Skip to content

Commit

Permalink
rtc: armada38x: Remove unused variable from armada38x_rtc_set_time()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Estevam authored and alexandrebelloni committed Jul 17, 2015
1 parent baeca44 commit d80238b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-armada38x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d80238b

Please sign in to comment.