Skip to content

Commit 72e538f

Browse files
Colin Ian Kingsre
authored andcommitted
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 <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 5c35ba9 commit 72e538f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/power/supply/isp1704_charger.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ static inline int isp1704_test_ulpi(struct isp1704_charger *isp)
342342
int vendor;
343343
int product;
344344
int i;
345-
int ret = -ENODEV;
345+
int ret;
346346

347347
/* Test ULPI interface */
348348
ret = isp1704_write(isp, ULPI_SCRATCH, 0xaa);

0 commit comments

Comments
 (0)