提交 189a2aae 编写于 作者: T Tom Rix 提交者: Sebastian Reichel

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: 6c50a08d ("power: supply: ab8500: Drop external charger leftovers")
Signed-off-by: NTom Rix <trix@redhat.com>
Reviewed-by: NLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: NChen Lifu <chenlifu@huawei.com>
Signed-off-by: NSebastian Reichel <sebastian.reichel@collabora.com>
上级 5738d49f
无相关合并请求
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部