power: supply: isp1704: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Fri, 5 Jul 2019 09:36:12 +0000 (10:36 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 2 Sep 2019 19:12:45 +0000 (21:12 +0200)
commit72e538f6ee883dde0925c89d288d16070f3286e4
treebf1339099b3b2ed302c6ea94b7a945b2c8837b01
parent5c35ba9b4743ac82613e8ff306287c8837f21f24
power: supply: isp1704: remove redundant assignment to variable ret

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

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/isp1704_charger.c