diff options
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-02-21 00:02:08 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2018-03-02 10:12:19 +0100 |
commit | 3d809cedae7e83c8968f8f994186324283766cb7 (patch) | |
tree | 4612758c94974b13f13b36e718dd3fc3212b2dc5 /drivers/rtc/rtc-m41t93.c | |
parent | rtc: isl12022: remove useless indirection (diff) | |
download | linux-3d809cedae7e83c8968f8f994186324283766cb7.tar.xz linux-3d809cedae7e83c8968f8f994186324283766cb7.zip |
rtc: m41t93: 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.
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/rtc/rtc-m41t93.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-m41t93.c b/drivers/rtc/rtc-m41t93.c index 5ac45fc1a787..4a08a9dabc82 100644 --- a/drivers/rtc/rtc-m41t93.c +++ b/drivers/rtc/rtc-m41t93.c @@ -159,7 +159,7 @@ static int m41t93_get_time(struct device *dev, struct rtc_time *tm) tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); - return ret < 0 ? ret : rtc_valid_tm(tm); + return ret; } |