Commit a0633629 authored by Maximilian Attems's avatar Maximilian Attems Committed by Greg Kroah-Hartman

[PATCH] PCI list_for_each: arch-ia64-pci-pci.c

Change for loops with list_for_each_entry().
Signed-off-by: default avatarDomen Puncer <domen@coderock.org>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 04938a2a
......@@ -365,10 +365,10 @@ pcibios_fixup_device_resources (struct pci_dev *dev, struct pci_bus *bus)
void __devinit
pcibios_fixup_bus (struct pci_bus *b)
{
struct list_head *ln;
struct pci_dev *dev;
for (ln = b->devices.next; ln != &b->devices; ln = ln->next)
pcibios_fixup_device_resources(pci_dev_b(ln), b);
list_for_each_entry(dev, &b->devices, bus_list)
pcibios_fixup_device_resources(dev, b);
return;
}
......
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