[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181205203525.esixfieniu23ruz2@earth.universe>
Date: Wed, 5 Dec 2018 21:35:25 +0100
From: Sebastian Reichel <sebastian.reichel@...labora.com>
To: Baolin Wang <baolin.wang@...aro.org>
Cc: robh+dt@...nel.org, mark.rutland@....com, linux-pm@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
yuanjiang.yu@...soc.com, broonie@...nel.org,
linus.walleij@...aro.org
Subject: Re: [PATCH 1/6] power: supply: charger-manager: Remove unused index
counting
Hi,
On Fri, Nov 16, 2018 at 07:01:08PM +0800, Baolin Wang wrote:
> Remove unused index counting.
>
> Signed-off-by: Baolin Wang <baolin.wang@...aro.org>
> ---
Thanks, queued.
-- Sebastian
> drivers/power/supply/charger-manager.c | 4 ----
> 1 file changed, 4 deletions(-)
>
> diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c
> index faa1a67..a1b420a 100644
> --- a/drivers/power/supply/charger-manager.c
> +++ b/drivers/power/supply/charger-manager.c
> @@ -1687,10 +1687,6 @@ static int charger_manager_probe(struct platform_device *pdev)
> return -EINVAL;
> }
>
> - /* Counting index only */
> - while (desc->psy_charger_stat[i])
> - i++;
> -
> /* Check if charger's supplies are present at probe */
> for (i = 0; desc->psy_charger_stat[i]; i++) {
> struct power_supply *psy;
> --
> 1.7.9.5
>
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists