power: supply: max14577: remove unneeded variable initialization
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Mon, 19 Apr 2021 16:33:32 +0000 (18:33 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 20 Apr 2021 14:18:08 +0000 (16:18 +0200)
commit01dcfe7849875db439d24600d6d89ef40ae97eac
tree65797d4e4540897c4764cc949fb6a8edd4f9bd20
parenta4d5ed3b54f0c66b331d81bebb2ba4a92abc43a3
power: supply: max14577: remove unneeded variable initialization

The local 'current_bits' variable does not have to be initialized
because all cases in following switch() either return or initialize it.

Addresses-Coverity: Unused value
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max14577_charger.c