diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-09-24 17:49:02 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-09-28 15:36:49 +0300 |
commit | 9a90a5bcc73e4805989ad791cdd075a81f1a23ef (patch) | |
tree | 8afd9dac7fa2fc844b43d92e431133d2799ca938 /drivers/rtc/rtc-ab8500.c | |
parent | 38ab97aebe47831e576095e58dac31860152b0fa (diff) | |
download | linux-9a90a5bcc73e4805989ad791cdd075a81f1a23ef.tar.xz |
rtc: ab8500: remove useless check
rtc_time_to_tm always rturns a valid tm, there is no need to validate it.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-ab8500.c')
-rw-r--r-- | drivers/rtc/rtc-ab8500.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index 2e2671b84ab0..1f0cbd51ba06 100644 --- a/drivers/rtc/rtc-ab8500.c +++ b/drivers/rtc/rtc-ab8500.c @@ -170,7 +170,7 @@ static int ab8500_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm) rtc_time_to_tm(secs, &alarm->time); - return rtc_valid_tm(&alarm->time); + return 0; } static int ab8500_rtc_irq_enable(struct device *dev, unsigned int enabled) |