projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0447505
)
regulator: max597x: Don't return uninitialized variable in .probe
author
Axel Lin
<axel.lin@ingics.com>
Thu, 14 Jul 2022 10:12:12 +0000
(18:12 +0800)
committer
Mark Brown
<broonie@kernel.org>
Thu, 14 Jul 2022 18:17:14 +0000
(19:17 +0100)
Remove the code checking and returning uninitialized variable.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Link:
https://lore.kernel.org/r/20220714101212.502824-1-axel.lin@ingics.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/max597x-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/max597x-regulator.c
b/drivers/regulator/max597x-regulator.c
index 5e09aa4213bea43eb7e868830556cf1e041de995..03c6027682d81b3c8451f3e6ef80e7c834afa727 100644
(file)
--- a/
drivers/regulator/max597x-regulator.c
+++ b/
drivers/regulator/max597x-regulator.c
@@
-453,9
+453,6
@@
static int max597x_regulator_probe(struct platform_device *pdev)
data->num_switches = num_switches;
data->regmap = max597x->regmap;
- if (ret < 0)
- return ret;
-
ret = max597x_adc_range(data->regmap, i, &max597x->irng[i], &max597x->mon_rng[i]);
if (ret < 0)
return ret;