Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb revert previous.



details:   https://anonhg.NetBSD.org/src/rev/b787b0dc3cb7
branches:  trunk
changeset: 757547:b787b0dc3cb7
user:      cegger <cegger%NetBSD.org@localhost>
date:      Sat Sep 04 05:09:06 2010 +0000

description:
revert previous.
requested from mrg

diffstat:

 sys/dev/usb/usbdi.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r 3179705d49df -r b787b0dc3cb7 sys/dev/usb/usbdi.c
--- a/sys/dev/usb/usbdi.c       Sat Sep 04 05:01:20 2010 +0000
+++ b/sys/dev/usb/usbdi.c       Sat Sep 04 05:09:06 2010 +0000
@@ -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)));



Home | Main Index | Thread Index | Old Index