Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a90a5bc authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: ab8500: remove useless check



rtc_time_to_tm always rturns a valid tm, there is no need to validate it.

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
parent 38ab97ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)