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/ic/uha.c | |
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/ic/uha.c')
-rw-r--r-- | sys/dev/ic/uha.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/uha.c b/sys/dev/ic/uha.c index 74e10d68963..15190263336 100644 --- a/sys/dev/ic/uha.c +++ b/sys/dev/ic/uha.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uha.c,v 1.4 2002/03/14 01:26:55 millert Exp $ */ +/* $OpenBSD: uha.c,v 1.5 2004/12/26 21:22:13 miod Exp $ */ /* $NetBSD: uha.c,v 1.3 1996/10/13 01:37:29 christos Exp $ */ #undef UHADEBUG @@ -190,7 +190,7 @@ uha_free_mscp(sc, mscp) * If there were none, wake anybody waiting for one to come free, * starting with queued entries. */ - if (mscp->chain.tqe_next == 0) + if (TAILQ_NEXT(mscp, chain) == NULL) wakeup(&sc->sc_free_mscp); splx(s); @@ -236,7 +236,7 @@ uha_get_mscp(sc, flags) * but only if we can't allocate a new one */ for (;;) { - mscp = sc->sc_free_mscp.tqh_first; + mscp = TAILQ_FIRST(&sc->sc_free_mscp); if (mscp) { TAILQ_REMOVE(&sc->sc_free_mscp, mscp, chain); break; |