mirror of
https://github.com/torvalds/linux.git
synced 2024-12-20 01:52:13 +00:00
power: supply: ab8500_fg: remove comparison to bool
Fix the following coccicheck warning: drivers/power/supply/ab8500_fg.c:2402:5-24: WARNING: Comparison to bool Signed-off-by: Jason Yan <yanaijie@huawei.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
parent
fc5be29f9b
commit
ddd86c9534
@ -2399,7 +2399,7 @@ static void ab8500_fg_reinit_work(struct work_struct *work)
|
||||
struct ab8500_fg *di = container_of(work, struct ab8500_fg,
|
||||
fg_reinit_work.work);
|
||||
|
||||
if (di->flags.calibrate == false) {
|
||||
if (!di->flags.calibrate) {
|
||||
dev_dbg(di->dev, "Resetting FG state machine to init.\n");
|
||||
ab8500_fg_clear_cap_samples(di);
|
||||
ab8500_fg_calc_cap_discharge_voltage(di, true);
|
||||
|
Loading…
Reference in New Issue
Block a user