From: Baolin Wang Date: Fri, 16 Nov 2018 11:01:08 +0000 (+0800) Subject: power: supply: charger-manager: Remove unused index counting X-Git-Tag: v5.4-rc1~1929^2~38 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1dd3509929dca131702ce46e3176c6641a8a93c5;p=platform%2Fkernel%2Flinux-rpi.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 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;