mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
rtc-parisc: remove a couple unnecessary variables
Signed-off-by: dann frazier <[email protected]> Reviewed-by: Grant Grundler <[email protected]> Cc: Alessandro Zummo <[email protected]> Cc: Kyle McMartin <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
cd875d4767
commit
a8c20cd3f7
1 changed files with 3 additions and 9 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue