Thread (4 messages) 4 messages, 3 authors, 2017-07-05

[PATCH] rtc: brcmstb-waketimer: fix settime function

From: f.fainelli@gmail.com (Florian Fainelli)
Date: 2017-06-28 23:15:13
Also in: linux-rtc, lkml

On 06/28/2017 01:07 PM, Arnd Bergmann wrote:
gcc warns about an unused variable in the new driver:

drivers/rtc/rtc-brcmstb-waketimer.c: In function 'brcmstb_waketmr_settime':
drivers/rtc/rtc-brcmstb-waketimer.c:142:6: error: unused variable 'ret' [-Werror=unused-variable]

The same function also doesn't handle overflow correctly, this makes
it return -EINVAL when passed a time that doesn't fit within the
range of the register.
Yes, thanks for doing that.
Fixes: 9f4ad359c801 ("rtc: brcmstb-waketimer: Add Broadcom STB wake-timer")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
-- 
Florian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help