]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit590bc11c409da57118b6e6b9b24b02ac97630374
tree62cf9bcd955b5e8c7da6b59c42e182058de8c753
parent670895e8a0ec52b82867b9dac53e8c7dfe3d097a
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: 29850a7ae5e2 ("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