Re: [PATCH] PCI fixes for 2.6.9

From: Greg KH
Date: Wed Oct 20 2004 - 00:16:25 EST


ChangeSet 1.1997.37.19, 2004/10/06 12:00:23-07:00, janitor@xxxxxxxxxxxxxx

[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@xxxxxxxxxxxx>
Signed-off-by: Maximilian Attems <janitor@xxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/