projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a33b25f
)
regulator: da9063: remove redundant return statement
author
Rishi Gupta
<gupt21@gmail.com>
Thu, 6 Feb 2020 13:49:56 +0000
(19:19 +0530)
committer
Mark Brown
<broonie@kernel.org>
Tue, 11 Feb 2020 11:33:54 +0000
(11:33 +0000)
The devm_request_threaded_irq() already returns 0 on success
and negative error code on failure. So return from this itself
can be used while preserving error log in case of failure.
Signed-off-by: Rishi Gupta <gupt21@gmail.com>
Link:
https://lore.kernel.org/r/1580996996-28798-1-git-send-email-gupt21@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/da9063-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/da9063-regulator.c
b/drivers/regulator/da9063-regulator.c
index ae54c76a85809ea5cbc2711eb3ab2616c7af13e5..aaa994293e9b0ca0172c48da7216070b2ae8956f 100644
(file)
--- a/
drivers/regulator/da9063-regulator.c
+++ b/
drivers/regulator/da9063-regulator.c
@@
-877,12
+877,10
@@
static int da9063_regulator_probe(struct platform_device *pdev)
NULL, da9063_ldo_lim_event,
IRQF_TRIGGER_LOW | IRQF_ONESHOT,
"LDO_LIM", regulators);
- if (ret)
{
+ if (ret)
dev_err(&pdev->dev, "Failed to request LDO_LIM IRQ.\n");
- return ret;
- }
- return
0
;
+ return
ret
;
}
static struct platform_driver da9063_regulator_driver = {