]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
rtc-parisc: remove a couple unnecessary variables
authordann frazier <dannf@hp.com>
Tue, 31 Mar 2009 22:24:55 +0000 (15:24 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Apr 2009 15:59:25 +0000 (08:59 -0700)
Signed-off-by: dann frazier <dannf@hp.com>
Reviewed-by: Grant Grundler <grundler@parisc-linux.org>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-parisc.c

index a2ca07ad42cba311ddf66163841c3a3d176a8146..c29e91814c9a487cdf1900ef7221f06725810d82 100644 (file)
@@ -25,11 +25,7 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm)
 
 static int parisc_set_time(struct device *dev, struct rtc_time *tm)
 {
-       int ret;
-
-       ret = set_rtc_time(tm);
-
-       if (ret < 0)
+       if (set_rtc_time(tm) < 0)
                return -EOPNOTSUPP;
 
        return 0;
@@ -46,10 +42,8 @@ static int __init parisc_rtc_probe(struct platform_device *dev)
 
        p = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops,
                                THIS_MODULE);
-       if (IS_ERR(p)) {
-               int err = PTR_ERR(p);
-               return err;
-       }
+       if (IS_ERR(p))
+               return PTR_ERR(p);
 
        platform_set_drvdata(dev, p);