Commit be6bd823 authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

regulator: max597x: Don't return uninitialized variable in .probe

Remove the code checking and returning uninitialized variable.
Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Link: https://lore.kernel.org/r/20220714101212.502824-1-axel.lin@ingics.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 04475057
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment