aboutsummaryrefslogtreecommitdiff
path: root/drivers/power/supply/ab8500_chargalg.c
diff options
context:
space:
mode:
authorGravatar Tom Rix <trix@redhat.com> 2022-07-18 22:27:43 -0400
committerGravatar Sebastian Reichel <sebastian.reichel@collabora.com> 2022-10-05 23:47:04 +0200
commit189a2aaef9cbee4cd7c3d1bd142f790cc14c598e (patch)
treef1758fb2a3404d47cf5dd971a7895bb747acf956 /drivers/power/supply/ab8500_chargalg.c
parentpower: supply: mt6370: Fix return value check in mt6370_chg_probe() (diff)
downloadlinux-189a2aaef9cbee4cd7c3d1bd142f790cc14c598e.tar.gz
linux-189a2aaef9cbee4cd7c3d1bd142f790cc14c598e.tar.bz2
linux-189a2aaef9cbee4cd7c3d1bd142f790cc14c598e.zip
power: supply: ab8500: remove unused static local variable
cpp_check reports [drivers/power/supply/ab8500_chargalg.c:493]: (style) Variable 'ab8500_chargalg_ex_ac_enable_toggle' is assigned a value that is never used. From inspection, this variable is never used. So remove it. Fixes: 6c50a08d9dd3 ("power: supply: ab8500: Drop external charger leftovers") Signed-off-by: Tom Rix <trix@redhat.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Chen Lifu <chenlifu@huawei.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power/supply/ab8500_chargalg.c')
-rw-r--r--drivers/power/supply/ab8500_chargalg.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/power/supply/ab8500_chargalg.c b/drivers/power/supply/ab8500_chargalg.c
index 40210d484be0..ea4ad61d4c7e 100644
--- a/drivers/power/supply/ab8500_chargalg.c
+++ b/drivers/power/supply/ab8500_chargalg.c
@@ -484,8 +484,6 @@ static int ab8500_chargalg_kick_watchdog(struct ab8500_chargalg *di)
static int ab8500_chargalg_ac_en(struct ab8500_chargalg *di, int enable,
int vset_uv, int iset_ua)
{
- static int ab8500_chargalg_ex_ac_enable_toggle;
-
if (!di->ac_chg || !di->ac_chg->ops.enable)
return -ENXIO;