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:
38ab97a
)
rtc: ab8500: remove useless check
author
Alexandre Belloni
<
[email protected]
>
Mon, 24 Sep 2018 14:49:02 +0000
(16:49 +0200)
committer
Alexandre Belloni
<
[email protected]
>
Fri, 28 Sep 2018 12:36:49 +0000
(14:36 +0200)
rtc_time_to_tm always rturns a valid tm, there is no need to validate it.
Signed-off-by: Alexandre Belloni <
[email protected]
>
Acked-by: Linus Walleij <
[email protected]
>
Signed-off-by: Alexandre Belloni <
[email protected]
>
drivers/rtc/rtc-ab8500.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-ab8500.c
b/drivers/rtc/rtc-ab8500.c
index 2e2671b84ab0e43a0f9d763d839679c5126a248f..1f0cbd51ba06ed5f06bcd790fa7d91075fbaa94e 100644
(file)
--- a/
drivers/rtc/rtc-ab8500.c
+++ b/
drivers/rtc/rtc-ab8500.c
@@
-170,7
+170,7
@@
static int ab8500_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alarm)
rtc_time_to_tm(secs, &alarm->time);
- return
rtc_valid_tm(&alarm->time)
;
+ return
0
;
}
static int ab8500_rtc_irq_enable(struct device *dev, unsigned int enabled)