diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-03-05 11:01:08 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-03-15 00:08:07 +0100 |
commit | 32826341058bf8d63456289a8bf48648ad17c897 (patch) | |
tree | b0806a6eac31d2408e448b8e96b7417f8fc17993 /drivers/power | |
parent | power: supply: core: provide function stubs if CONFIG_POWER_SUPPLY=n (diff) | |
download | linux-32826341058bf8d63456289a8bf48648ad17c897.tar.xz linux-32826341058bf8d63456289a8bf48648ad17c897.zip |
power: supply: z2_battery: Drop unused variable
The kernel test robot reports an unused variable in the
Z2 battery code caused by a recent commit.
Fixes: a3b4388ea19b ("power: supply: z2_battery: Convert to GPIO descriptors")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/z2_battery.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/power/supply/z2_battery.c b/drivers/power/supply/z2_battery.c index b1508fe70e5e..7ed4e4bb26ec 100644 --- a/drivers/power/supply/z2_battery.c +++ b/drivers/power/supply/z2_battery.c @@ -90,9 +90,6 @@ static void z2_batt_ext_power_changed(struct power_supply *batt_ps) static void z2_batt_update(struct z2_charger *charger) { int old_status = charger->bat_status; - struct z2_battery_info *info; - - info = charger->info; mutex_lock(&charger->work_lock); |