power: supply: charger-manager: Remove unused index counting
authorBaolin Wang <baolin.wang@linaro.org>
Fri, 16 Nov 2018 11:01:08 +0000 (19:01 +0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Wed, 5 Dec 2018 20:24:21 +0000 (21:24 +0100)
Remove unused index counting.

Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/charger-manager.c

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