From f817c58ea799274eb832d25dc61acb5955f9b2d9 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sat, 25 Dec 2004 23:02:27 +0000 Subject: Use list and queue macros where applicable to make the code easier to read; no functional change. --- sys/arch/i386/isa/ahc_isa.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys/arch/i386/isa/ahc_isa.c') diff --git a/sys/arch/i386/isa/ahc_isa.c b/sys/arch/i386/isa/ahc_isa.c index c385c554cf6..c2c0ad8a608 100644 --- a/sys/arch/i386/isa/ahc_isa.c +++ b/sys/arch/i386/isa/ahc_isa.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahc_isa.c,v 1.13 2004/08/01 01:36:23 krw Exp $ */ +/* $OpenBSD: ahc_isa.c,v 1.14 2004/12/25 23:02:24 miod Exp $ */ /* $NetBSD: ahc_isa.c,v 1.5 1996/10/21 22:27:39 thorpej Exp $ */ /* @@ -309,8 +309,7 @@ ahc_isa_probe(parent, match, aux) * Find this bus's state. If we don't yet have a slot * marker, allocate and initialize one. */ - for (as = ahc_isa_all_slots.lh_first; as != NULL; - as = as->link.le_next) + LIST_FOREACH(as, &ahc_isa_all_slots, link) if (as->bus == parent->dv_unit) goto found_slot_marker; -- cgit v1.2.3