summaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-zynqmp.c
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2018-02-19 16:23:55 +0100
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-03-01 10:49:41 +0100
commit146d21bd9dc167d75bed4c0fdfe790db7565e99b (patch)
treed1168e99ae2659fbcb113e02f4247ddbd05f36d3 /drivers/rtc/rtc-zynqmp.c
parentrtc: stk17ta8: let the core handle invalid time (diff)
downloadlinux-146d21bd9dc167d75bed4c0fdfe790db7565e99b.tar.xz
linux-146d21bd9dc167d75bed4c0fdfe790db7565e99b.zip
rtc: stop validating rtc_time after rtc_time64_to_tm
rtc_time64_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-zynqmp.c')
-rw-r--r--drivers/rtc/rtc-zynqmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-zynqmp.c b/drivers/rtc/rtc-zynqmp.c
index da18a8ae3c1d..fba994dc31eb 100644
--- a/drivers/rtc/rtc-zynqmp.c
+++ b/drivers/rtc/rtc-zynqmp.c
@@ -122,7 +122,7 @@ static int xlnx_rtc_read_time(struct device *dev, struct rtc_time *tm)
rtc_time64_to_tm(read_time, tm);
}
- return rtc_valid_tm(tm);
+ return 0;
}
static int xlnx_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)