diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-07-05 12:36:12 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2019-09-02 22:12:45 +0300 |
commit | 72e538f6ee883dde0925c89d288d16070f3286e4 (patch) | |
tree | bf1339099b3b2ed302c6ea94b7a945b2c8837b01 /drivers/power/supply/isp1704_charger.c | |
parent | 5c35ba9b4743ac82613e8ff306287c8837f21f24 (diff) | |
download | linux-72e538f6ee883dde0925c89d288d16070f3286e4.tar.xz |
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>
Diffstat (limited to 'drivers/power/supply/isp1704_charger.c')
-rw-r--r-- | drivers/power/supply/isp1704_charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/isp1704_charger.c b/drivers/power/supply/isp1704_charger.c index b48cb7aba97b..4812ac1ff2df 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); |