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

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

Merge "power: qpnp-fg: fix error condition in get_batt_id"

parents dd608cfa 21c602f8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1646,8 +1646,8 @@ static int64_t get_batt_id(unsigned int battery_id_uv, u8 bid_info)
{
	u64 battery_id_ohm;

	if (!(bid_info & 0x3) >= 1) {
		pr_err("can't determine battery id %d\n", bid_info);
	if ((bid_info & 0x3) == 0) {
		pr_err("can't determine battery id 0x%02x\n", bid_info);
		return -EINVAL;
	}