diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-02-04 16:08:18 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2001-02-04 16:08:18 +0000 |
| commit | 37d400662666a604243e587c70d492fe357d150a (patch) | |
| tree | f9bc9c6c4944d30981cf39fb66f61ea34fb86795 /sys/dev/ray/if_ray.c | |
| parent | bcf77694d13313045a6a78477507a30ebd653894 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ray/if_ray.c')
| -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 2563daf8298a..ea6a5ccad6c3 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", |
