mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
power: supply: charger-manager: Remove unused index counting
Remove unused index counting. Signed-off-by: Baolin Wang <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
This commit is contained in:
parent
80fca773bf
commit
1dd3509929
1 changed files with 0 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue