regulator: tps80031: remove redundant assignment to variables ret and val
authorColin Ian King <colin.king@canonical.com>
Fri, 10 Apr 2020 13:34:06 +0000 (14:34 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 14 Apr 2020 15:57:44 +0000 (16:57 +0100)
commit2ea8db7200d40f89ebfb97fc512ced5f792e0e1c
tree9784b9db13f99cb58af7541413ce2be3ec51582d
parent29ebe87cdd57accdbe94e44a01685cb3227ad223
regulator: tps80031: remove redundant assignment to variables ret and val

The variables ret and val are being initialized with values that are
never read and are being updated later with a new value.  The
initializations are redundant and can be removed.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Unused value")
Link: https://lore.kernel.org/r/20200410133406.24458-1-colin.king@canonical.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps80031-regulator.c