From: Colin Ian King Date: Fri, 5 Jul 2019 09:36:12 +0000 (+0100) Subject: power: supply: isp1704: remove redundant assignment to variable ret X-Git-Tag: v5.4-rc1~70^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=72e538f6ee883dde0925c89d288d16070f3286e4;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/isp1704_charger.c b/drivers/power/supply/isp1704_charger.c index b48cb7aba97b5..4812ac1ff2dfc 100644 --- a/drivers/power/supply/isp1704_charger.c +++ b/drivers/power/supply/isp1704_charger.c @@ -342,7 +342,7 @@ static inline int isp1704_test_ulpi(struct isp1704_charger *isp) int vendor; int product; int i; - int ret = -ENODEV; + int ret; /* Test ULPI interface */ ret = isp1704_write(isp, ULPI_SCRATCH, 0xaa);