Commit 1dd35099 authored by Baolin Wang's avatar Baolin Wang Committed by Sebastian Reichel

power: supply: charger-manager: Remove unused index counting

Remove unused index counting.
Signed-off-by: default avatarBaolin Wang <baolin.wang@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 80fca773
...@@ -1687,10 +1687,6 @@ static int charger_manager_probe(struct platform_device *pdev) ...@@ -1687,10 +1687,6 @@ static int charger_manager_probe(struct platform_device *pdev)
return -EINVAL; return -EINVAL;
} }
/* Counting index only */
while (desc->psy_charger_stat[i])
i++;
/* Check if charger's supplies are present at probe */ /* Check if charger's supplies are present at probe */
for (i = 0; desc->psy_charger_stat[i]; i++) { for (i = 0; desc->psy_charger_stat[i]; i++) {
struct power_supply *psy; struct power_supply *psy;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment