diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2005-03-12 17:36:26 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2005-03-12 17:36:26 +0000 |
commit | f479bb857fbaf6e6010d642082174f521b96589d (patch) | |
tree | 5ba8da38429338e22fad135ed195b2d62e6e57a3 /sys | |
parent | d0d71015d5756df3f9c69e9fe39a3e981afaeead (diff) |
use TAILQ_FOREACH
ok krw@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/siop.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/ic/siop.c b/sys/dev/ic/siop.c index dd20b6f9329..82d2c13db9b 100644 --- a/sys/dev/ic/siop.c +++ b/sys/dev/ic/siop.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siop.c,v 1.37 2004/10/13 23:33:02 krw Exp $ */ +/* $OpenBSD: siop.c,v 1.38 2005/03/12 17:36:25 martin Exp $ */ /* $NetBSD: siop.c,v 1.65 2002/11/08 22:04:41 bouyer Exp $ */ /* @@ -369,8 +369,7 @@ siop_intr(v) } /* use DSA to find the current siop_cmd */ dsa = bus_space_read_4(sc->sc_c.sc_rt, sc->sc_c.sc_rh, SIOP_DSA); - for (cbdp = TAILQ_FIRST(&sc->cmds); cbdp != NULL; - cbdp = TAILQ_NEXT(cbdp, next)) { + TAILQ_FOREACH(cbdp, &sc->cmds, next) { if (dsa >= cbdp->xferdma->dm_segs[0].ds_addr && dsa < cbdp->xferdma->dm_segs[0].ds_addr + PAGE_SIZE) { dsa -= cbdp->xferdma->dm_segs[0].ds_addr; |