]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: bq25980: remove redundant zero check on ret
authorColin Ian King <colin.king@canonical.com>
Tue, 6 Oct 2020 17:06:00 +0000 (18:06 +0100)
committerSebastian Reichel <sre@kernel.org>
Thu, 8 Oct 2020 21:31:01 +0000 (23:31 +0200)
commitd9ec8884387f9a2c96a5a3c4d947a7c2b7a00502
tree254d05731355f3a1ccec7c180e4d0c508ccb58e0
parent6f3694f2f479d4be5fcc4d807a7d415668171cfc
power: supply: bq25980: remove redundant zero check on ret

Currently ret is assigned to zero and the following statement checks
if it is non-zero. This check is redundant and can be removed

Addresses-Coverity: ("Logically dead code")
Fixes: 6e02a369af55 ("power: supply: bq25980: Add support for the BQ259xx family")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Dan Murphy <dmurphy@ti.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25980_charger.c