Commit f390e4bd authored by Colin Ian King's avatar Colin Ian King Committed by Sebastian Reichel
Browse files

power: supply: axp288_fuel_gauge: remove redundant continue statement



The continue statement at the end of a for-loop has no effect,
invert the if expression and remove the continue.

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 3a06b912
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -142,9 +142,7 @@ static int fuel_gauge_reg_readb(struct axp288_fg_info *info, int reg)

	for (i = 0; i < NR_RETRY_CNT; i++) {
		ret = regmap_read(info->regmap, reg, &val);
		if (ret == -EBUSY)
			continue;
		else
		if (ret != -EBUSY)
			break;
	}