summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang@linaro.org>2018-11-16 19:01:08 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2018-12-05 21:24:21 +0100
commit1dd3509929dca131702ce46e3176c6641a8a93c5 (patch)
treeaf9b26c6ed40294d3778162a0f337fb7886eff0d /drivers
parent80fca773bf810bdc89c6876e9138e18a5d58b6ad (diff)
downloadlinux-1dd3509929dca131702ce46e3176c6641a8a93c5.tar.bz2
power: supply: charger-manager: Remove unused index counting
Remove unused index counting. Signed-off-by: Baolin Wang <baolin.wang@linaro.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/supply/charger-manager.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c
index faa1a67cf3d2..a1b420a01593 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;