diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2018-11-16 14:01:08 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2018-12-05 23:24:21 +0300 |
commit | 1dd3509929dca131702ce46e3176c6641a8a93c5 (patch) | |
tree | af9b26c6ed40294d3778162a0f337fb7886eff0d /drivers/power | |
parent | 80fca773bf810bdc89c6876e9138e18a5d58b6ad (diff) | |
download | linux-1dd3509929dca131702ce46e3176c6641a8a93c5.tar.xz |
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/power')
-rw-r--r-- | drivers/power/supply/charger-manager.c | 4 |
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; |