mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
drivers/rtc/rtc-s3c.c: remove one superfluous rtc_valid_tm() check
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]>
This commit is contained in:
parent
5d9094b6c7
commit
492da68c8c
1 changed files with 1 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue