Skip to contentSkip to conversation

pci_dev_b to list_for_each_entry:

PATCH New Domen Puncer 1 participant 1 message Aug 20, 2004 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 2/12 pci_dev_b to list_for_each_entry:

arch/i386/pci/i386.c +1 -3
@@ -96,15 +96,13 @@
 
 static void __init pcibios_allocate_bus_resources(struct list_head *bus_list)
 {
-	struct list_head *ln;
 	struct pci_bus *bus;
 	struct pci_dev *dev;
 	int idx;
 	struct resource *r, *pr;
 
 	/* Depth-First Search on bus tree */
-	list_for_each(ln, bus_list) {
-		bus = pci_bus_b(ln);
+	list_for_each_entry(bus, bus_list, node) {
 		if ((dev = bus->self)) {
 			for (idx = PCI_BRIDGE_RESOURCES; idx < PCI_NUM_RESOURCES; idx++) {
 				r = &dev->resource[idx];

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors