regulator: max597x: Don't return uninitialized variable in .probe
authorAxel Lin <axel.lin@ingics.com>
Thu, 14 Jul 2022 10:12:12 +0000 (18:12 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 14 Jul 2022 18:17:14 +0000 (19:17 +0100)
commitbe6bd82351e8019eae1e289537529ff59b41b955
treef785f77010feef63c2a4c67f92d4edadc5edbf41
parent044750573903595765fa52ba9e1aadc397d591df
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>
drivers/regulator/max597x-regulator.c