regulator: bd9576: Fix return from bd957x_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 12 Mar 2021 07:42:52 +0000 (10:42 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 15 Mar 2021 15:42:15 +0000 (15:42 +0000)
commit320fcd6bbd2b500923db518902c2c640242d2b50
treea03ef6d90d3671b7a02fa87fd990ef61e67bc925
parent45ee8b79d67905ac57408b30314757981531def9
regulator: bd9576: Fix return from bd957x_probe()

The probe() function returns an uninitialized variable in the success
path.  There is no need for the "err" variable at all, just delete it.

Fixes: b014e9fae7e7 ("regulator: Support ROHM BD9576MUF and BD9573MUF")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Link: https://lore.kernel.org/r/YEsbfLJfEWtnRpoU@mwanda
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/bd9576-regulator.c