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>
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;
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);