summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_subr.c
diff options
context:
space:
mode:
authorNick Hibma <n_hibma@FreeBSD.org>1999-04-20 22:37:18 +0000
committerNick Hibma <n_hibma@FreeBSD.org>1999-04-20 22:37:18 +0000
commit38a3a046fcb92d486ba6d15482d433d5bf15cec8 (patch)
tree5754786d6440b258c7880a68bf274a806d1d6152 /sys/dev/usb/usb_subr.c
parent1d8ca40c41d6d4e4e1f1a60e6835384367222c7f (diff)
Notes
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r--sys/dev/usb/usb_subr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 838d778e857c..cba6d3b20e45 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;