Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 139235
b: refs/heads/master
c: a8c20cd
h: refs/heads/master
i:
  139233: 888fccf
  139231: 4c64e10
v: v3
  • Loading branch information
dann frazier authored and Linus Torvalds committed Apr 1, 2009
1 parent 7df109d commit 8baa99d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cd875d4767f821dabd0feb668623a42e9d48158a
refs/heads/master: a8c20cd3f7e2e223898c53adfb74420db5d9ac47
12 changes: 3 additions & 9 deletions trunk/drivers/rtc/rtc-parisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);

Expand Down

0 comments on commit 8baa99d

Please sign in to comment.