From: Linus Walleij Date: Fri, 5 Mar 2021 10:01:08 +0000 (+0100) Subject: power: supply: z2_battery: Drop unused variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=32826341058bf8d63456289a8bf48648ad17c897;p=linux.git 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 Signed-off-by: Linus Walleij Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/z2_battery.c b/drivers/power/supply/z2_battery.c index b1508fe70e5ef..7ed4e4bb26eca 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);