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

Commit ca0cdd4b authored by Ashish Chavan's avatar Ashish Chavan
Browse files

power: battery: Fix use of uninitialized variable error



Fix use of uninitiallized variable error in function
get_adapter_icl_based_ilim.

Change-Id: I650594d80fda88aca2de399dfa16483f72f88e77
Signed-off-by: default avatarAshish Chavan <ashichav@codeaurora.org>
parent b27a9fb8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -193,7 +193,8 @@ static int cp_get_parallel_mode(struct pl_data *chip, int mode)

static int get_adapter_icl_based_ilim(struct pl_data *chip)
{
	int main_icl, adapter_icl = -EINVAL, rc = -EINVAL, final_icl = -EINVAL;
	int main_icl = -EINVAL, adapter_icl = -EINVAL, final_icl = -EINVAL;
	int rc = -EINVAL;
	union power_supply_propval pval = {0, };

	rc = power_supply_get_property(chip->usb_psy,