mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
parisc: set_time() catch errors
set_rtc_time returns negative on error, ret should be signed to catch those Signed-off-by: Roel Kluin <[email protected]> Reviewed-by: Grant Grundler <[email protected]> Signed-off-by: Kyle McMartin <[email protected]>
This commit is contained in:
parent
d2e6675fff
commit
022b769045
1 changed files with 2 additions and 1 deletions
|
|
@ -34,7 +34,8 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm)
|
|||
static int parisc_set_time(struct device *dev, struct rtc_time *tm)
|
||||
{
|
||||
struct parisc_rtc *p = dev_get_drvdata(dev);
|
||||
unsigned long flags, ret;
|
||||
unsigned long flags;
|
||||
int ret;
|
||||
|
||||
spin_lock_irqsave(&p->lock, flags);
|
||||
ret = set_rtc_time(tm);
|
||||
|
|
|
|||
Loading…
Reference in a new issue