diff options
author | phk <phk@FreeBSD.org> | 2001-02-04 16:08:18 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2001-02-04 16:08:18 +0000 |
commit | 709379c1aeaadc2770d45e2cb1bc6428c65f09d3 (patch) | |
tree | dfeb80ff1352759a12e59878a24ad037eef63ea0 /sys/dev/ray | |
parent | e01468552648a6fc51185ba9e47435b0d00ff96f (diff) | |
download | FreeBSD-src-709379c1aeaadc2770d45e2cb1bc6428c65f09d3.zip FreeBSD-src-709379c1aeaadc2770d45e2cb1bc6428c65f09d3.tar.gz |
Another round of the <sys/queue.h> FOREACH transmogriffer.
Created with: sed(1)
Reviewed by: md5(1)
Diffstat (limited to 'sys/dev/ray')
-rw-r--r-- | sys/dev/ray/if_ray.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ray/if_ray.c b/sys/dev/ray/if_ray.c index 2563daf..ea6a5cc 100644 --- a/sys/dev/ray/if_ray.c +++ b/sys/dev/ray/if_ray.c @@ -589,8 +589,7 @@ ray_detach(device_t dev) untimeout(ray_com_ecf_timo, sc, sc->com_timerh); untimeout(ray_tx_timo, sc, sc->tx_timerh); com = TAILQ_FIRST(&sc->sc_comq); - for (com = TAILQ_FIRST(&sc->sc_comq); com != NULL; - com = TAILQ_NEXT(com, c_chain)) { + TAILQ_FOREACH(com, &sc->sc_comq, c_chain) { com->c_flags |= RAY_COM_FDETACHED; com->c_retval = 0; RAY_DPRINTF(sc, RAY_DBG_STOP, "looking at com %p %b", |