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>
This commit is contained in:
Krzysztof Kozlowski 2021-04-19 18:33:32 +02:00 committed by Sebastian Reichel
parent a4d5ed3b54
commit 01dcfe7849
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ static int max14577_init_constant_voltage(struct max14577_charger *chg,
static int max14577_init_eoc(struct max14577_charger *chg,
unsigned int uamp)
{
unsigned int current_bits = 0xf;
unsigned int current_bits;
u8 reg_data;
switch (chg->max14577->dev_type) {