]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: omap: stop validating rtc_time in .set_time and .set_alarm
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 21 Feb 2018 10:33:37 +0000 (11:33 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 2 Mar 2018 09:12:21 +0000 (10:12 +0100)
commit853376282a81473c923007a6e32e87f9f0e1c6ea
tree25c1d12dccc310bd3a0de669e877c01b55d38782
parent15f2ad753ffef8a63557fb011025c04acc401dc4
rtc: omap: stop validating rtc_time in .set_time and .set_alarm

The RTC core is always validating the rtc_time struct before calling
.set_time or .set_alarm. It is not necessary to do it again.
Also, rtc_time_to_tm never generates an invalid rtc_tm (it can be out of
range though).

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-omap.c