diff options
author | Xunlei Pang <pang.xunlei@linaro.org> | 2015-01-22 03:31:54 +0100 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2015-01-24 02:21:57 +0100 |
commit | 966301a23ef8ff0a4c5f71b585dafbf334808574 (patch) | |
tree | b751c6f7df65a70adc74ee19bfa65fa012a5b18e /drivers/rtc/hctosys.c | |
parent | rtc: Modify rtc_hctosys() to address y2038 issues (diff) | |
download | linux-966301a23ef8ff0a4c5f71b585dafbf334808574.tar.xz linux-966301a23ef8ff0a4c5f71b585dafbf334808574.zip |
rtc: Remove redundant rtc_valid_tm() from rtc_hctosys()
rtc_read_time() has already judged valid tm by rtc_valid_tm(),
so just remove it.
Cc: pang.xunlei <pang.xunlei@linaro.org>
Cc: Arnd Bergmann <arnd.bergmann@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Xunlei Pang <pang.xunlei@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'drivers/rtc/hctosys.c')
-rw-r--r-- | drivers/rtc/hctosys.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/rtc/hctosys.c b/drivers/rtc/hctosys.c index 2153b526d61f..6c719f23520a 100644 --- a/drivers/rtc/hctosys.c +++ b/drivers/rtc/hctosys.c @@ -45,13 +45,6 @@ static int __init rtc_hctosys(void) } - err = rtc_valid_tm(&tm); - if (err) { - dev_err(rtc->dev.parent, - "hctosys: invalid date/time\n"); - goto err_invalid; - } - tv64.tv_sec = rtc_tm_to_time64(&tm); err = do_settimeofday64(&tv64); @@ -63,7 +56,6 @@ static int __init rtc_hctosys(void) tm.tm_hour, tm.tm_min, tm.tm_sec, (long long) tv64.tv_sec); -err_invalid: err_read: rtc_class_close(rtc); |