summaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
authorXunlei Pang <pang.xunlei@linaro.org>2015-01-21 21:31:54 -0500
committerJohn Stultz <john.stultz@linaro.org>2015-01-23 20:21:57 -0500
commit966301a23ef8ff0a4c5f71b585dafbf334808574 (patch)
treeb751c6f7df65a70adc74ee19bfa65fa012a5b18e /drivers/rtc
parenta6d6e1c879efa4b77e250c34fe5fe1c34e6ef070 (diff)
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')
-rw-r--r--drivers/rtc/hctosys.c8
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)
45 45
46 } 46 }
47 47
48 err = rtc_valid_tm(&tm);
49 if (err) {
50 dev_err(rtc->dev.parent,
51 "hctosys: invalid date/time\n");
52 goto err_invalid;
53 }
54
55 tv64.tv_sec = rtc_tm_to_time64(&tm); 48 tv64.tv_sec = rtc_tm_to_time64(&tm);
56 49
57 err = do_settimeofday64(&tv64); 50 err = do_settimeofday64(&tv64);
@@ -63,7 +56,6 @@ static int __init rtc_hctosys(void)
63 tm.tm_hour, tm.tm_min, tm.tm_sec, 56 tm.tm_hour, tm.tm_min, tm.tm_sec,
64 (long long) tv64.tv_sec); 57 (long long) tv64.tv_sec);
65 58
66err_invalid:
67err_read: 59err_read:
68 rtc_class_close(rtc); 60 rtc_class_close(rtc);
69 61