Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb fix non-DIAGNOSTIC build



details:   https://anonhg.NetBSD.org/src/rev/9eff0cd7d98c
branches:  trunk
changeset: 771578:9eff0cd7d98c
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Nov 25 13:58:41 2011 +0000

description:
fix non-DIAGNOSTIC build

diffstat:

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

diffs (29 lines):

diff -r fa82d8d6d247 -r 9eff0cd7d98c sys/dev/usb/umidi.c
--- a/sys/dev/usb/umidi.c       Fri Nov 25 13:55:40 2011 +0000
+++ b/sys/dev/usb/umidi.c       Fri Nov 25 13:58:41 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umidi.c,v 1.48 2011/11/25 13:45:09 jmcneill Exp $      */
+/*     $NetBSD: umidi.c,v 1.49 2011/11/25 13:58:41 skrll Exp $ */
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.48 2011/11/25 13:45:09 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umidi.c,v 1.49 2011/11/25 13:58:41 skrll Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -1120,9 +1120,8 @@
 {
        usbd_status err = USBD_NORMAL_COMPLETION;
        struct umidi_endpoint *ep = jack->endpoint;
-       struct umidi_softc *sc = ep->sc;
 
-       KASSERT(mutex_owned(&sc->sc_lock));
+       KASSERT(mutex_owned(&ep->sc->sc_lock));
 
        if (jack->opened)
                return USBD_IN_USE;



Home | Main Index | Thread Index | Old Index