All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] power: supply: z2_battery: Drop unused variable
@ 2021-03-05 10:01 Linus Walleij
  2021-03-14 23:09 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2021-03-05 10:01 UTC (permalink / raw)
  To: Sebastian Reichel; +Cc: linux-pm, Linus Walleij, kernel test robot

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

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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] power: supply: z2_battery: Drop unused variable
  2021-03-05 10:01 [PATCH] power: supply: z2_battery: Drop unused variable Linus Walleij
@ 2021-03-14 23:09 ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2021-03-14 23:09 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-pm, kernel test robot

[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]

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
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-03-14 23:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-05 10:01 [PATCH] power: supply: z2_battery: Drop unused variable Linus Walleij
2021-03-14 23:09 ` Sebastian Reichel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.