]> git.baikalelectronics.ru Git - kernel.git/commit
rtc: cpcap: stop validating rtc_time in .read_time
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Mon, 19 Feb 2018 15:23:57 +0000 (16:23 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 2 Mar 2018 09:09:59 +0000 (10:09 +0100)
commitb7e22e707f42a1f5e9d743461a88b0fb55eda83d
tree84c9e0333888d708b5a2f481cd071501c7463704
parent9a28f0cdac388ca8a50bb65dedbc7228e295022e
rtc: cpcap: stop validating rtc_time in .read_time

The RTC core is always calling rtc_valid_tm after the read_time callback.
It is not necessary to call it just before returning from the callback.

Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/rtc-cpcap.c