From d3fa1cf29a1707389049503dc7b2745ede1df366 Mon Sep 17 00:00:00 2001 From: cegger Date: Sat, 4 Sep 2010 05:09:06 +0000 Subject: revert previous. requested from mrg --- sys/dev/usb/usbdi.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c index 996e8733dd1..c17f1666323 100644 --- a/sys/dev/usb/usbdi.c +++ b/sys/dev/usb/usbdi.c @@ -1,4 +1,4 @@ -/* $NetBSD: usbdi.c,v 1.128 2010/09/03 23:15:09 cegger Exp $ */ +/* $NetBSD: usbdi.c,v 1.129 2010/09/04 05:09:06 cegger Exp $ */ /* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */ /* @@ -32,7 +32,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.128 2010/09/03 23:15:09 cegger Exp $"); +__KERNEL_RCSID(0, "$NetBSD: usbdi.c,v 1.129 2010/09/04 05:09:06 cegger Exp $"); #include "opt_compat_netbsd.h" @@ -800,8 +800,7 @@ usb_transfer_complete(usbd_xfer_handle xfer) xfer, SIMPLEQ_FIRST(&pipe->queue)); xfer->busy_free = XFER_BUSY; #endif - if (SIMPLEQ_FIRST(&pipe->queue) != NULL) - SIMPLEQ_REMOVE_HEAD(&pipe->queue, next); + SIMPLEQ_REMOVE_HEAD(&pipe->queue, next); } DPRINTFN(5,("usb_transfer_complete: repeat=%d new head=%p\n", repeat, SIMPLEQ_FIRST(&pipe->queue))); -- cgit