power: supply: z2_battery: Drop unused variable
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 5 Mar 2021 10:01:08 +0000 (11:01 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Sun, 14 Mar 2021 23:08:07 +0000 (00:08 +0100)
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>
drivers/power/supply/z2_battery.c

index b1508fe70e5efe74dcb5b17a25f598f437795dbc..7ed4e4bb26ecaad5d880a20c9632ba5d79cdb866 100644 (file)
@@ -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);