mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-16 10:17:32 +00:00
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:
parent
a4d5ed3b54
commit
01dcfe7849
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user