mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
38ab97aebe
commit
9a90a5bcc7
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue