diff mbox series

power: supply: z2_battery: Drop unused variable

Message ID 20210305100108.2036203-1-linus.walleij@linaro.org (mailing list archive)
State Not Applicable, archived
Headers show
Series power: supply: z2_battery: Drop unused variable | expand

Commit Message

Linus Walleij March 5, 2021, 10:01 a.m. UTC
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>
---
 drivers/power/supply/z2_battery.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Sebastian Reichel March 14, 2021, 11:09 p.m. UTC | #1
Hi,

On Fri, Mar 05, 2021 at 11:01:08AM +0100, Linus Walleij wrote:
> 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>
> ---

Thanks, queued.

-- Sebastian

>  drivers/power/supply/z2_battery.c | 3 ---
>  1 file changed, 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);
>  
> -- 
> 2.29.2
>
diff mbox series

Patch

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);