diff options
| author | joerg <joerg@NetBSD.org> | 2013-10-04 21:10:18 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2013-10-04 21:10:18 +0000 |
| commit | 90b66bbd4fef6296dd28fa2178eaee1a007562fb (patch) | |
| tree | c5c4de437d2b8d818ca1ec4d7dbe3961aa295db9 | |
| parent | a949d096929479cbab21aad7cea009611aedae25 (diff) | |
Move an assert to the point where the referenced variable is initialized.
| -rw-r--r-- | sys/dev/ic/sl811hs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/ic/sl811hs.c b/sys/dev/ic/sl811hs.c index f906303ff2c..4e967a60ebf 100644 --- a/sys/dev/ic/sl811hs.c +++ b/sys/dev/ic/sl811hs.c @@ -1,4 +1,4 @@ -/* $NetBSD: sl811hs.c,v 1.45 2013/10/03 13:19:24 skrll Exp $ */ +/* $NetBSD: sl811hs.c,v 1.46 2013/10/04 21:10:18 joerg Exp $ */ /* * Not (c) 2007 Matthew Orgass @@ -68,7 +68,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.45 2013/10/03 13:19:24 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sl811hs.c,v 1.46 2013/10/04 21:10:18 joerg Exp $"); #include "opt_slhci.h" @@ -1340,8 +1340,6 @@ slhci_abort(struct usbd_xfer *xfer) struct slhci_softc *sc; struct slhci_pipe *spipe; - KASSERT(mutex_owned(&sc->sc_lock)); - spipe = (struct slhci_pipe *)xfer->pipe; if (spipe == NULL) @@ -1349,6 +1347,8 @@ slhci_abort(struct usbd_xfer *xfer) sc = spipe->pipe.device->bus->hci_private; + KASSERT(mutex_owned(&sc->sc_lock)); + DLOG(D_TRACE, "%s abort xfer %p spipe %p spipe->xfer %p", pnames(spipe->ptype), xfer, spipe, spipe->xfer); |
