diff options
author | Axel Lin <axel.lin@ingics.com> | 2022-07-14 18:12:12 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-07-14 19:17:14 +0100 |
commit | be6bd82351e8019eae1e289537529ff59b41b955 (patch) | |
tree | f785f77010feef63c2a4c67f92d4edadc5edbf41 /drivers/regulator | |
parent | 044750573903595765fa52ba9e1aadc397d591df (diff) | |
download | linux-be6bd82351e8019eae1e289537529ff59b41b955.tar.gz linux-be6bd82351e8019eae1e289537529ff59b41b955.tar.bz2 linux-be6bd82351e8019eae1e289537529ff59b41b955.zip |
regulator: max597x: Don't return uninitialized variable in .probe
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>
Diffstat (limited to 'drivers/regulator')
-rw-r--r-- | drivers/regulator/max597x-regulator.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/regulator/max597x-regulator.c b/drivers/regulator/max597x-regulator.c index 5e09aa4213be..03c6027682d8 100644 --- 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; |