summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-starfire.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-19 10:23:55 -0500
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-03-01 04:49:41 -0500
commitab62670e57174c547abbecacf6df78d3dcf03f26 (patch)
tree5ca67c1fca5b03d229b17e2194d9ecca910dbb7a /drivers/rtc/rtc-starfire.c
parent146d21bd9dc167d75bed4c0fdfe790db7565e99b (diff)
rtc: stop validating rtc_time after rtc_time_to_tm
rtc_time_to_tm never generates an invalid tm. It is not necessary to validate it. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/rtc-starfire.c')
-rw-r--r--drivers/rtc/rtc-starfire.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-starfire.c b/drivers/rtc/rtc-starfire.c
index 7fc36973fa33..a7d49329d626 100644
--- a/drivers/rtc/rtc-starfire.c
+++ b/drivers/rtc/rtc-starfire.c
@@ -28,7 +28,7 @@ static u32 starfire_get_time(void)
28static int starfire_read_time(struct device *dev, struct rtc_time *tm) 28static int starfire_read_time(struct device *dev, struct rtc_time *tm)
29{ 29{
30 rtc_time_to_tm(starfire_get_time(), tm); 30 rtc_time_to_tm(starfire_get_time(), tm);
31 return rtc_valid_tm(tm); 31 return 0;
32} 32}
33 33
34static const struct rtc_class_ops starfire_rtc_ops = { 34static const struct rtc_class_ops starfire_rtc_ops = {