Messages in this thread Patch in this message | | | Subject | Re: [PATCH] PCI fixes for 2.6.9 | Date | Tue, 19 Oct 2004 15:42:14 -0700 | From | Greg KH <> |
| |
ChangeSet 1.1997.37.19, 2004/10/06 12:00:23-07:00, janitor@sternwelten.at
[PATCH] PCI list_for_each: arch-ia64-sn-io-machvec-pci_bus_cvlink.c
s/for/list_for_each/
Signed-off-by: Domen Puncer <domen@coderock.org> Signed-off-by: Maximilian Attems <janitor@sternwelten.at> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
arch/ia64/sn/io/machvec/pci_bus_cvlink.c | 4 +--- 1 files changed, 1 insertion(+), 3 deletions(-)
diff -Nru a/arch/ia64/sn/io/machvec/pci_bus_cvlink.c b/arch/ia64/sn/io/machvec/pci_bus_cvlink.c --- a/arch/ia64/sn/io/machvec/pci_bus_cvlink.c 2004-10-19 15:26:04 -07:00 +++ b/arch/ia64/sn/io/machvec/pci_bus_cvlink.c 2004-10-19 15:26:04 -07:00 @@ -832,7 +832,6 @@ { int i = 0; struct pci_controller *controller; - struct list_head *ln; struct pci_bus *pci_bus = NULL; struct pci_dev *pci_dev = NULL; int ret; @@ -879,8 +878,7 @@ /* * Initialize the pci bus vertex in the pci_bus struct. */ - for( ln = pci_root_buses.next; ln != &pci_root_buses; ln = ln->next) { - pci_bus = pci_bus_b(ln); + list_for_each_entry(pci_bus, &pci_root_buses, node) { ret = sn_pci_fixup_bus(pci_bus); if ( ret ) { printk(KERN_WARNING - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |