regulator: max77620: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Wed, 3 Jul 2019 08:20:09 +0000 (09:20 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 3 Jul 2019 12:02:38 +0000 (13:02 +0100)
commita3c7c029c3da01645f2db1bf7737668d17c2c78a
tree95885f21b17b2aba5974bc8781d9e07c780b4eec
parentd6d02bc6e80453ca004e101eae28d741bde54426
regulator: max77620: remove redundant assignment to variable ret

The variable ret is being initialized with a value that is never
read and it is being updated later with a new value. The
initialization is redundant and can be removed.

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