regulator: core: Remove redundant assignment to variable possible_uV
authorColin Ian King <colin.i.king@gmail.com>
Fri, 16 Feb 2024 13:49:18 +0000 (13:49 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 19 Feb 2024 16:59:35 +0000 (16:59 +0000)
commit7f719a953975dc3bb970ed8f7ef8a97bad6000ab
tree7e430940ae0b961e49da86702a817c9dc191bb2f
parent09235bf3170fd4a0052af06825016d9557564f9b
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 <colin.i.king@gmail.com>
Link: https://msgid.link/r/20240216134918.2108262-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c