2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-15 00:34:10 +08:00

rtc: mc146818-lib: change return values of mc146818_get_time()

No function is checking mc146818_get_time() return values yet, so
correct them to make them more customary.

Signed-off-by: Mateusz Jończyk <mat.jonczyk@o2.pl>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211210200131.153887-3-mat.jonczyk@o2.pl
This commit is contained in:
Mateusz Jończyk 2021-12-10 21:01:24 +01:00 committed by Alexandre Belloni
parent 454f47ff46
commit d35786b3a2

View File

@ -25,7 +25,7 @@ again:
if (WARN_ON_ONCE((CMOS_READ(RTC_VALID) & 0x40) != 0)) {
spin_unlock_irqrestore(&rtc_lock, flags);
memset(time, 0xff, sizeof(*time));
return 0;
return -EIO;
}
/*
@ -116,7 +116,7 @@ again:
time->tm_mon--;
return RTC_24H;
return 0;
}
EXPORT_SYMBOL_GPL(mc146818_get_time);