Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Remove comment about splusb and replace with KASS...



details:   https://anonhg.NetBSD.org/src/rev/5e9c92638738
branches:  trunk
changeset: 345159:5e9c92638738
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue May 10 21:15:54 2016 +0000

description:
Remove comment about splusb and replace with KASSERT(mutex_owned())

diffstat:

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

diffs (35 lines):

diff -r ebfd8d0dcd2e -r 5e9c92638738 sys/dev/ic/sl811hs.c
--- a/sys/dev/ic/sl811hs.c      Tue May 10 21:13:48 2016 +0000
+++ b/sys/dev/ic/sl811hs.c      Tue May 10 21:15:54 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sl811hs.c,v 1.59 2016/05/10 21:13:48 skrll Exp $       */
+/*     $NetBSD: sl811hs.c,v 1.60 2016/05/10 21:15:54 skrll Exp $       */
 
 /*
  * Not (c) 2007 Matthew Orgass
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.59 2016/05/10 21:13:48 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.60 2016/05/10 21:15:54 skrll Exp $");
 
 #include "opt_slhci.h"
 
@@ -1296,6 +1296,8 @@
        struct slhci_softc *sc;
        struct slhci_pipe *spipe;
 
+       KASSERT(mutex_owned(&sc->sc_lock));
+
        spipe = SLHCI_PIPE2SPIPE(xfer->ux_pipe);
 
        if (spipe == NULL)
@@ -1312,7 +1314,6 @@
 
 callback:
        xfer->ux_status = USBD_CANCELLED;
-       /* Abort happens at IPL_USB. */
        usb_transfer_complete(xfer);
 }
 



Home | Main Index | Thread Index | Old Index