]> 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)
commitd689189fdf907bd9eaba5e7e9276289fb376c648
tree62cf9bcd955b5e8c7da6b59c42e182058de8c753
parent1848c2d66a9e92d6bccf95213c815bb3606ccdaf
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: f3a216ecdce6 ("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