rtc: rv3029: simplify rv3029_set_alarm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 14 Dec 2019 22:10:14 +0000 (23:10 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 18 Dec 2019 09:37:59 +0000 (10:37 +0100)
commit8fd3d609a5c87ccff2327c9813d35723b9a6ac10
treef4698bcfecb64bfff0f8894e3d5aec4f6ff9429b
parent38ce8e30f37e8cfcf789f5b2b197f517def3c2c6
rtc: rv3029: simplify rv3029_set_alarm

It is unecessay to test alarm->enabled before calling
rv3029_alarm_irq_enable.

Link: https://lore.kernel.org/r/20191214221022.622482-9-alexandre.belloni@bootlin.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-rv3029c2.c