diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-26 21:22:15 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-26 21:22:15 +0000 |
commit | c5af0812e5d7d60d182addc4594c42baf2e8b591 (patch) | |
tree | f3b7e8064fa2dac88f6df9c7c5bda683a4ee96fe /sys/dev/eisa | |
parent | fa70810cdbb843b66175fff83a47dc871a8c2780 (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/eisa')
-rw-r--r-- | sys/dev/eisa/aha1742.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/eisa/aha1742.c b/sys/dev/eisa/aha1742.c index 8b221900e5e..62befdb058f 100644 --- a/sys/dev/eisa/aha1742.c +++ b/sys/dev/eisa/aha1742.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aha1742.c,v 1.18 2003/10/21 10:27:12 jmc Exp $ */ +/* $OpenBSD: aha1742.c,v 1.19 2004/12/26 21:22:11 miod Exp $ */ /* $NetBSD: aha1742.c,v 1.61 1996/05/12 23:40:01 mycroft Exp $ */ /* @@ -707,7 +707,7 @@ ahb_free_ecb(sc, ecb, flags) * If there were none, wake anybody waiting for one to come free, * starting with queued entries. */ - if (ecb->chain.tqe_next == 0) + if (TAILQ_NEXT(ecb, chain) == NULL) wakeup(&sc->free_ecb); splx(s); @@ -764,7 +764,7 @@ ahb_get_ecb(sc, flags) * but only if we can't allocate a new one. */ for (;;) { - ecb = sc->free_ecb.tqh_first; + ecb = TAILQ_FIRST(&sc->free_ecb); if (ecb) { TAILQ_REMOVE(&sc->free_ecb, ecb, chain); break; |