]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: imxdi: remove unused variable
authorAnders Roxell <anders.roxell@linaro.org>
Fri, 3 May 2019 15:42:17 +0000 (17:42 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 8 May 2019 20:14:36 +0000 (22:14 +0200)
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>
drivers/rtc/rtc-imxdi.c

index 6342bc403645d93e99576f55def36710679af6aa..3f3d652a0b0fdfc570f43b33a5e30983330d9535 100644 (file)
@@ -630,7 +630,6 @@ static int dryice_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm)
 static int dryice_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alarm)
 {
        struct imxdi_dev *imxdi = dev_get_drvdata(dev);
-       unsigned long now;
        int rc;
 
        /* write the new alarm time */