diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-06-18 11:29:24 +0200 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-06-30 00:10:26 +0200 |
commit | f390e4bd79289b85bfe345d4d9d160dc4926dfc1 (patch) | |
tree | e41ac56b8ef60982a48ac798ffa8cd366e14c60b /drivers/power | |
parent | power: supply: axp288_fuel_gauge: Make "T3 MRD" no_battery_list DMI entry mor... (diff) | |
download | linux-f390e4bd79289b85bfe345d4d9d160dc4926dfc1.tar.xz linux-f390e4bd79289b85bfe345d4d9d160dc4926dfc1.zip |
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/axp288_fuel_gauge.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/power/supply/axp288_fuel_gauge.c b/drivers/power/supply/axp288_fuel_gauge.c index a9c28a725818..2ba2d8d6b8e6 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; } |