Commit 01dcfe78 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Sebastian Reichel

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: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent a4d5ed3b
...@@ -261,7 +261,7 @@ static int max14577_init_constant_voltage(struct max14577_charger *chg, ...@@ -261,7 +261,7 @@ static int max14577_init_constant_voltage(struct max14577_charger *chg,
static int max14577_init_eoc(struct max14577_charger *chg, static int max14577_init_eoc(struct max14577_charger *chg,
unsigned int uamp) unsigned int uamp)
{ {
unsigned int current_bits = 0xf; unsigned int current_bits;
u8 reg_data; u8 reg_data;
switch (chg->max14577->dev_type) { switch (chg->max14577->dev_type) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment