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

Commit 61baceb0 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: battery: Fix use of uninitialized variable error"

parents 3a4f9afc ca0cdd4b
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,