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

Commit 7babdf40 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: vm-bms: Initialize the intval variable"

parents 0cc17f7c f5585c88
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1680,6 +1680,8 @@ static int qpnp_vm_bms_power_get_property(struct power_supply *psy,
				struct qpnp_bms_chip, bms_psy);
	int value = 0, rc;

	val->intval = 0;

	switch (psp) {
	case POWER_SUPPLY_PROP_CAPACITY:
		val->intval = get_prop_bms_capacity(chip);