ChangeSet 1.1790.2.4, 2004/08/02 15:34:05-07:00, domen@coderock.org [PATCH] PCI: use list_for_each() i386/pci/common.c From: Domen Puncer Signed-off-by: Maximilian Attems Signed-off-by: Greg Kroah-Hartman arch/i386/pci/common.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -Nru a/arch/i386/pci/common.c b/arch/i386/pci/common.c --- a/arch/i386/pci/common.c 2004-08-23 11:08:33 -07:00 +++ b/arch/i386/pci/common.c 2004-08-23 11:08:33 -07:00 @@ -70,7 +70,7 @@ int i; DBG("PCI: Scanning for ghost devices on bus %d\n", b->number); - for (ln=b->devices.next; ln != &b->devices; ln=ln->next) { + list_for_each(ln, &b->devices) { d = pci_dev_b(ln); if ((d->class >> 8) == PCI_CLASS_BRIDGE_HOST) seen_host_bridge++;