Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

parisc: set_time() catch errors

set_rtc_time returns negative on error, ret should be signed to catch those

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>

authored by

Roel Kluin and committed by
Kyle McMartin
022b7690 d2e6675f

+2 -1
+2 -1
drivers/rtc/rtc-parisc.c
··· 34 34 static int parisc_set_time(struct device *dev, struct rtc_time *tm) 35 35 { 36 36 struct parisc_rtc *p = dev_get_drvdata(dev); 37 - unsigned long flags, ret; 37 + unsigned long flags; 38 + int ret; 38 39 39 40 spin_lock_irqsave(&p->lock, flags); 40 41 ret = set_rtc_time(tm);