Message ID | 20210618092924.99722-1-colin.king@canonical.com |
---|---|
State | Accepted |
Commit | f390e4bd79289b85bfe345d4d9d160dc4926dfc1 |
Headers | show |
Series | power: supply: axp288_fuel_gauge: remove redundant continue statement | expand |
diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c index 39e16ecb7638..20e63609ab47 100644 --- a/drivers/power/supply/axp288_fuel_gauge.c +++ b/drivers/power/supply/axp288_fuel_gauge.c @@ -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; }