Module Name: src Committed By: cegger Date: Sat Sep 4 05:09:07 UTC 2010
Modified Files: src/sys/dev/usb: usbdi.c Log Message: revert previous. requested from mrg To generate a diff of this commit: cvs rdiff -u -r1.128 -r1.129 src/sys/dev/usb/usbdi.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/usbdi.c diff -u src/sys/dev/usb/usbdi.c:1.128 src/sys/dev/usb/usbdi.c:1.129 --- src/sys/dev/usb/usbdi.c:1.128 Fri Sep 3 23:15:09 2010 +++ src/sys/dev/usb/usbdi.c Sat Sep 4 05:09:06 2010 @@ -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 <sys/cdefs.h> -__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 @@ 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)));