Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

rtc: imxdi: remove unused variable

This variable is no longer used and the compiler rightly complains that
it should be removed.

../drivers/rtc/rtc-imxdi.c: In function ‘dryice_rtc_set_alarm’:
../drivers/rtc/rtc-imxdi.c:633:16: warning: unused variable ‘now’ [-Wunused-variable]
unsigned long now;
^~~

Rework to remove the unused variable.

Fixes: 629d488a3eb6 ("rtc: imxdi: remove unnecessary check")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>

authored by

Anders Roxell and committed by
Alexandre Belloni
557fbf4f a01ab066

-1
-1
drivers/rtc/rtc-imxdi.c
··· 630 630 static int dryice_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm) 631 631 { 632 632 struct imxdi_dev *imxdi = dev_get_drvdata(dev); 633 - unsigned long now; 634 633 int rc; 635 634 636 635 /* write the new alarm time */