mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
rtc: jz4740: remove useless check
rtc_time64_to_tm always returns a valid tm, it is not necessary to validate it. Tested-by: Mathieu Malaterre <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]>
This commit is contained in:
parent
be8dce96f3
commit
d10dcc95fa
1 changed files with 1 additions and 1 deletions
|
|
@ -198,7 +198,7 @@ static int jz4740_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
|
|||
|
||||
rtc_time64_to_tm(secs, &alrm->time);
|
||||
|
||||
return rtc_valid_tm(&alrm->time);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int jz4740_rtc_set_alarm(struct device *dev, struct rtc_wkalrm *alrm)
|
||||
|
|
|
|||
Loading…
Reference in a new issue