summaryrefslogtreecommitdiff
path: root/sys/dev/isa/elink.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-12-26 21:22:15 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-12-26 21:22:15 +0000
commitc5af0812e5d7d60d182addc4594c42baf2e8b591 (patch)
treef3b7e8064fa2dac88f6df9c7c5bda683a4ee96fe /sys/dev/isa/elink.c
parentfa70810cdbb843b66175fff83a47dc871a8c2780 (diff)
Use list and queue macros where applicable to make the code easier to read;
no change in compiler assembly output.
Diffstat (limited to 'sys/dev/isa/elink.c')
-rw-r--r--sys/dev/isa/elink.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/isa/elink.c b/sys/dev/isa/elink.c
index 2ae326fba4a..d51418ff26c 100644
--- a/sys/dev/isa/elink.c
+++ b/sys/dev/isa/elink.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elink.c,v 1.5 1997/11/07 08:06:45 niklas Exp $ */
+/* $OpenBSD: elink.c,v 1.6 2004/12/26 21:22:13 miod Exp $ */
/* $NetBSD: elink.c,v 1.9 1996/05/03 19:06:27 christos Exp $ */
/*
@@ -80,8 +80,7 @@ elink_reset(iot, ioh, bus)
/*
* Reset these cards if we haven't done so already.
*/
- for (er = elink_all_resets.lh_first; er != NULL;
- er = er->er_link.le_next)
+ LIST_FOREACH(er, &elink_all_resets, er_link)
if (er->er_bus == bus)
goto out;