projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
406dc00
)
drivers/rtc/rtc-max77686.c: fix incorrect return value on error
author
Sachin Kamat
<
[email protected]
>
Mon, 29 Apr 2013 23:20:12 +0000
(16:20 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 30 Apr 2013 01:28:34 +0000
(18:28 -0700)
'ret' was not initialized to error code before returning. While
at it also remove some redundant code and cleanup.
Signed-off-by: Sachin Kamat <
[email protected]
>
Cc: Chiwoong Byun <
[email protected]
>
Cc: Jonghwa Lee <
[email protected]
>
Cc: Laxman dewangan <
[email protected]
>
Cc: Venu Byravarasu <
[email protected]
>
Cc: Jingoo Han <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-max77686.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-max77686.c
b/drivers/rtc/rtc-max77686.c
index 5a12b32f77ecc5bbff3771d1da3139f08d182a05..fb08b89c41e7f5ca1da4c2c5b574c10bd8b3a6b3 100644
(file)
--- a/
drivers/rtc/rtc-max77686.c
+++ b/
drivers/rtc/rtc-max77686.c
@@
-551,17
+551,17
@@
static int max77686_rtc_probe(struct platform_device *pdev)
goto err_rtc;
}
virq = irq_create_mapping(max77686->irq_domain, MAX77686_RTCIRQ_RTCA1);
- if (!virq)
+ if (!virq) {
+ ret = -ENXIO;
goto err_rtc;
+ }
info->virq = virq;
ret = devm_request_threaded_irq(&pdev->dev, virq, NULL,
max77686_rtc_alarm_irq, 0, "rtc-alarm0", info);
- if (ret < 0)
{
+ if (ret < 0)
dev_err(&pdev->dev, "Failed to request alarm IRQ: %d: %d\n",
info->virq, ret);
- goto err_rtc;
- }
err_rtc:
return ret;