Skip to content

Commit f390e4b

Browse files
Colin Ian Kingsre
authored andcommitted
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: Colin Ian King <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 3a06b91 commit f390e4b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/power/supply/axp288_fuel_gauge.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,7 @@ static int fuel_gauge_reg_readb(struct axp288_fg_info *info, int reg)
142142

143143
for (i = 0; i < NR_RETRY_CNT; i++) {
144144
ret = regmap_read(info->regmap, reg, &val);
145-
if (ret == -EBUSY)
146-
continue;
147-
else
145+
if (ret != -EBUSY)
148146
break;
149147
}
150148

0 commit comments

Comments
 (0)