Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Krzysztof Kozlowski and committed by
Sebastian Reichel
01dcfe78 a4d5ed3b

+1 -1
+1 -1
drivers/power/supply/max14577_charger.c
··· 261 261 static int max14577_init_eoc(struct max14577_charger *chg, 262 262 unsigned int uamp) 263 263 { 264 - unsigned int current_bits = 0xf; 264 + unsigned int current_bits; 265 265 u8 reg_data; 266 266 267 267 switch (chg->max14577->dev_type) {