Commit a8c20cd3 authored by dann frazier's avatar dann frazier Committed by Linus Torvalds

rtc-parisc: remove a couple unnecessary variables

Signed-off-by: default avatardann frazier <dannf@hp.com>
Reviewed-by: default avatarGrant 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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent cd875d47
...@@ -25,11 +25,7 @@ static int parisc_get_time(struct device *dev, struct rtc_time *tm) ...@@ -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) static int parisc_set_time(struct device *dev, struct rtc_time *tm)
{ {
int ret; if (set_rtc_time(tm) < 0)
ret = set_rtc_time(tm);
if (ret < 0)
return -EOPNOTSUPP; return -EOPNOTSUPP;
return 0; return 0;
...@@ -46,10 +42,8 @@ static int __init parisc_rtc_probe(struct platform_device *dev) ...@@ -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, p = rtc_device_register("rtc-parisc", &dev->dev, &parisc_rtc_ops,
THIS_MODULE); THIS_MODULE);
if (IS_ERR(p)) { if (IS_ERR(p))
int err = PTR_ERR(p); return PTR_ERR(p);
return err;
}
platform_set_drvdata(dev, p); platform_set_drvdata(dev, p);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment