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)
commit557fbf4f387a6b3df2e02647848b7b4f1064e104
tree62cf9bcd955b5e8c7da6b59c42e182058de8c753
parenta01ab0669ddf652f521630129e614c16542994b0
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>
drivers/rtc/rtc-imxdi.c