From: Baolin Wang Date: Fri, 16 Nov 2018 11:01:08 +0000 (+0800) Subject: power: supply: charger-manager: Remove unused index counting X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=1dd3509929dca131702ce46e3176c6641a8a93c5;p=linux.git power: supply: charger-manager: Remove unused index counting Remove unused index counting. Signed-off-by: Baolin Wang Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c index faa1a67cf3d2c..a1b420a01593d 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;