Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64ef2322 authored by Kavya Nunna's avatar Kavya Nunna
Browse files

power: smb1398-charger: Fix use of uninitialized variable error



Fix use of uninitiallized variable error in function
smb1398_taper_work.

Change-Id: I5a86fc7b879cbe3c31556645ad4808ac1b8f7ae2
Signed-off-by: default avatarKavya Nunna <knunna@codeaurora.org>
parent a0b558b7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1755,7 +1755,7 @@ static void smb1398_taper_work(struct work_struct *work)
	struct smb1398_chip *chip = container_of(work,
			struct smb1398_chip, taper_work);
	union power_supply_propval pval = {0};
	int rc, fcc_ua, fv_uv, stepper_ua, main_fcc_ua, min_ilim_ua;
	int rc, fcc_ua, fv_uv, stepper_ua, main_fcc_ua = 0, min_ilim_ua;
	bool slave_en;

	if (!is_psy_voter_available(chip))