All of lore.kernel.org
 help / color / mirror / Atom feed
* [Kernel-janitors] [patch 2.6.8.1] list_for_each:
@ 2004-08-19 11:11 Domen Puncer
  2004-08-19 11:11 ` Domen Puncer
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: Domen Puncer @ 2004-08-19 11:11 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

Hi.

Change for loops with list_for_each().

Signed-off-by: Domen Puncer <domen@coderock.org>

--- c/arch/alpha/kernel/pci.c	Wed Jun 16 07:18:57 2004
+++ list_for_each/arch/alpha/kernel/pci.c	Thu Aug 15 17:58:22 2002
@@ -309,7 +309,7 @@
  		pcibios_fixup_device_resources(dev, bus);
 	} 
 
-	for (ln = bus->devices.next; ln != &bus->devices; ln = ln->next) {
+	list_for_each(ln, &bus->devices) {
 		struct pci_dev *dev = pci_dev_b(ln);
 
 		pdev_save_srm_config(dev);
@@ -411,7 +411,7 @@
 	struct list_head *ld;
 	struct pci_bus *child_bus;
 
-	for (ld = b->devices.next; ld != &b->devices; ld = ld->next) {
+	list_for_each(ld, &b->devices) {
 		struct pci_dev *dev = pci_dev_b(ld);
 		int i;
 
@@ -433,7 +433,7 @@
 {
 	struct list_head *lb;
 
-	for(lb = pci_root_buses.next; lb != &pci_root_buses; lb = lb->next) {
+	list_for_each(lb, &pci_root_buses) {
 		struct pci_bus *b = pci_bus_b(lb);
 		pcibios_claim_one_bus(b);
 	}

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2004-08-20  5:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-19 11:11 [Kernel-janitors] [patch 2.6.8.1] list_for_each: Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` [Kernel-janitors] [patch 2.6.8.1] list_for_each: arch-ia64-pci-pci.c Domen Puncer
2004-08-19 11:11 ` [Kernel-janitors] [patch 2.6.8.1] list_for_each: Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` Domen Puncer
2004-08-19 11:11 ` [Kernel-janitors] [patch 2.6.8.1] list_for_each: net-ipv6-ip6_fib.c Domen Puncer
2004-08-19 14:57 ` [Kernel-janitors] [patch 2.6.8.1] list_for_each: maximilian attems
2004-08-20  5:29 ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.