Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Remove KASSERTs that don't make sense.



details:   https://anonhg.NetBSD.org/src/rev/24d45b39f251
branches:  trunk
changeset: 345875:24d45b39f251
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jun 12 15:20:02 2016 +0000

description:
Remove KASSERTs that don't make sense.

diffstat:

 sys/dev/usb/xhci.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (36 lines):

diff -r ee13bbb74685 -r 24d45b39f251 sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Sun Jun 12 14:28:26 2016 +0000
+++ b/sys/dev/usb/xhci.c        Sun Jun 12 15:20:02 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.57 2016/06/10 15:19:27 skrll Exp $  */
+/*     $NetBSD: xhci.c,v 1.58 2016/06/12 15:20:02 skrll Exp $  */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.57 2016/06/10 15:19:27 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.58 2016/06/12 15:20:02 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1236,8 +1236,6 @@
            xs->xs_idx, dci, pipe->up_endpoint->ue_edesc->bEndpointAddress,
            pipe->up_endpoint->ue_edesc->bmAttributes);
 
-       KASSERT(!mutex_owned(&sc->sc_lock));
-
        /* XXX ensure input context is available? */
 
        memset(xhci_slot_get_icv(sc, xs, 0), 0, sc->sc_pgsz);
@@ -1292,8 +1290,6 @@
        XHCIHIST_FUNC(); XHCIHIST_CALLED();
        DPRINTFN(4, "slot %u dci %u", xs->xs_idx, dci, 0, 0);
 
-       KASSERT(!mutex_owned(&sc->sc_lock));
-
        trb.trb_0 = 0;
        trb.trb_2 = 0;
        trb.trb_3 = XHCI_TRB_3_SLOT_SET(xs->xs_idx) |



Home | Main Index | Thread Index | Old Index