[patch-kj] use list_for_each() i386/pci/common.c

From: maximilian attems
Date: Fri Jul 23 2004 - 04:24:10 EST



Use list_for_each() where applicable
- for (list = ymf_devs.next; list != &ymf_devs; list = list->next) {
+ list_for_each(list, &ymf_devs) {
pure cosmetic change, defined as a preprocessor macro in:
include/linux/list.h

patch against 2.6.7-bk20, please tell if you need against newer.

From: Domen Puncer <domen@xxxxxxxxxxxx>
Signed-off-by: Maximilian Attems <janitor@xxxxxxxxxxxxxx>



---

linux-2.6.7-bk20-max/arch/i386/pci/common.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)

diff -puN arch/i386/pci/common.c~list_for_each-i386pci-common arch/i386/pci/common.c
--- linux-2.6.7-bk20/arch/i386/pci/common.c~list_for_each-i386pci-common 2004-07-11 14:41:10.000000000 +0200
+++ linux-2.6.7-bk20-max/arch/i386/pci/common.c 2004-07-11 14:41:10.000000000 +0200
@@ -70,7 +70,7 @@ static void __devinit pcibios_fixup_ghos
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++;

-
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/