summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2008-12-03 07:16:04 +0300
committerKyle McMartin <kyle@mcmartin.ca>2009-01-05 21:15:25 +0300
commit022b7690454ebf945d46467fea7b5f47bbb9b420 (patch)
tree23f6f5060023026a904fbd4863b99146b317b387 /drivers/rtc
parentd2e6675fffe435989e51c084600581ca58048c13 (diff)
downloadlinux-022b7690454ebf945d46467fea7b5f47bbb9b420.tar.xz
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>
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-parisc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-parisc.c b/drivers/rtc/rtc-parisc.c
index 346d633655e7..c6bfa6fe1a2a 100644
--- a/drivers/rtc/rtc-parisc.c
+++ b/drivers/rtc/rtc-parisc.c
@@ -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);