Skip to content

Commit 055100d

Browse files
ColinIanKingbroonie
authored andcommitted
regulator: core: Remove redundant assignment to variable possible_uV
The variable possible_uV being assigned a value that is never read, the control flow via the following goto statement takes a path where the variable is not accessed. The assignment is redundant and can be removed. Cleans up clang scan build warning: drivers/regulator/core.c:3935:3: warning: Value stored to 'possible_uV' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <[email protected]> Link: https://msgid.link/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 6037733 commit 055100d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/regulator/core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3932,7 +3932,6 @@ static int regulator_get_optimal_voltage(struct regulator_dev *rdev,
39323932
if (ret < 0)
39333933
return ret;
39343934

3935-
possible_uV = desired_min_uV;
39363935
done = true;
39373936

39383937
goto finish;

0 commit comments

Comments
 (0)