Source-Changes-HG archive

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

[src/nick-nhusb]: src/sys/dev/usb An std is "done" when it's not inflight. M...



details:   https://anonhg.NetBSD.org/src/rev/5aa891b208a2
branches:  nick-nhusb
changeset: 334415:5aa891b208a2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Feb 27 15:48:36 2016 +0000

description:
An std is "done" when it's not inflight.  Mark it done when it's first
allocated.

diffstat:

 sys/dev/usb/ohci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ed6644f34f1a -r 5aa891b208a2 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c        Sat Feb 27 15:47:18 2016 +0000
+++ b/sys/dev/usb/ohci.c        Sat Feb 27 15:48:36 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ohci.c,v 1.254.2.51 2016/02/27 15:47:18 skrll Exp $    */
+/*     $NetBSD: ohci.c,v 1.254.2.52 2016/02/27 15:48:36 skrll Exp $    */
 
 /*
  * Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.51 2016/02/27 15:47:18 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.52 2016/02/27 15:48:36 skrll Exp $");
 
 #include "opt_usb.h"
 
@@ -795,7 +795,7 @@
        sitd->xfer = NULL;
 
 #ifdef DIAGNOSTIC
-       sitd->isdone = false;
+       sitd->isdone = true;
 #endif
 
        return sitd;



Home | Main Index | Thread Index | Old Index