diff options
author | n_hibma <n_hibma@FreeBSD.org> | 1999-04-20 22:37:18 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 1999-04-20 22:37:18 +0000 |
commit | 4fc9be52674835f5e227469c3f47fb7178a78cff (patch) | |
tree | 82265426ea1dfaa97b73adb027129bf2c9c509ef /sys/dev/usb/usb_subr.c | |
parent | e795cd37ab210201c9db979663ad8d29d2d00620 (diff) | |
download | FreeBSD-src-4fc9be52674835f5e227469c3f47fb7178a78cff.zip FreeBSD-src-4fc9be52674835f5e227469c3f47fb7178a78cff.tar.gz |
Remove feature creep: STAILQ_REMOVE_HEAD_UNTIL added it for convenience
but we can do without it.
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r-- | sys/dev/usb/usb_subr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index 838d778..cba6d3b 100644 --- a/sys/dev/usb/usb_subr.c +++ b/sys/dev/usb/usb_subr.c @@ -1040,7 +1040,11 @@ usb_start_next(pipe) #endif /* First remove remove old */ +#if defined(__NetBSD__) SIMPLEQ_REMOVE_HEAD(&pipe->queue, SIMPLEQ_FIRST(&pipe->queue), next); +#elif defined(__FreeBSD__) + SIMPLEQ_REMOVE_HEAD(&pipe->queue, next); +#endif if (pipe->state != USBD_PIPE_ACTIVE) { pipe->running = 0; return; |