mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00: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 <malat@debian.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
be8dce96f3
commit
d10dcc95fa
@ -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 New Issue
Block a user