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 Remove KASSERTs that don't make sense.



details:   https://anonhg.NetBSD.org/src/rev/c6f62ec11b51
branches:  nick-nhusb
changeset: 804668:c6f62ec11b51
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sun Jun 12 15:25:38 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 327f783a44f3 -r c6f62ec11b51 sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Sun Jun 12 08:35:47 2016 +0000
+++ b/sys/dev/usb/xhci.c        Sun Jun 12 15:25:38 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.28.2.74 2016/06/10 14:53:31 skrll Exp $     */
+/*     $NetBSD: xhci.c,v 1.28.2.75 2016/06/12 15:25:38 skrll Exp $     */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.28.2.74 2016/06/10 14:53:31 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.28.2.75 2016/06/12 15:25:38 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1238,8 +1238,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);
@@ -1294,8 +1292,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