mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 23:58:05 +00:00
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 <colin.king@canonical.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
3a06b912a5
commit
f390e4bd79
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue