projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d9094b
)
drivers/rtc/rtc-s3c.c: remove one superfluous rtc_valid_tm() check
author
Krzysztof Kozlowski
<
[email protected]
>
Thu, 16 Apr 2015 19:46:08 +0000
(12:46 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 17 Apr 2015 13:04:02 +0000
(09:04 -0400)
s3c_rtc_gettime() already returns the result of rtc_valid_tm() on the
obtained time so get rid of another call to rtc_valid_tm().
Signed-off-by: Krzysztof Kozlowski <
[email protected]
>
Reviewed-by: Chanwoo Choi <
[email protected]
>
Cc: Alexandre Belloni <
[email protected]
>
Cc: Alessandro Zummo <
[email protected]
>
Cc: Marek Szyprowski <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-s3c.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-s3c.c
b/drivers/rtc/rtc-s3c.c
index a313b9b5a27e7edfab21381bcb2774e30bdfb9ed..76cbad7a99d34d4bd6d1cb2baca98e08fc3264a7 100644
(file)
--- a/
drivers/rtc/rtc-s3c.c
+++ b/
drivers/rtc/rtc-s3c.c
@@
-497,9
+497,7
@@
static int s3c_rtc_probe(struct platform_device *pdev)
device_init_wakeup(&pdev->dev, 1);
/* Check RTC Time */
- s3c_rtc_gettime(&pdev->dev, &rtc_tm);
-
- if (rtc_valid_tm(&rtc_tm)) {
+ if (s3c_rtc_gettime(&pdev->dev, &rtc_tm)) {
rtc_tm.tm_year = 100;
rtc_tm.tm_mon = 0;
rtc_tm.tm_mday = 1;