Module Name: src Committed By: jmcneill Date: Thu Aug 1 10:47:51 UTC 2013
Modified Files: src/sys/dev/usb: dwc_otg.c Log Message: fix non-DIAGNOSTIC build To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/sys/dev/usb/dwc_otg.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/dwc_otg.c diff -u src/sys/dev/usb/dwc_otg.c:1.49 src/sys/dev/usb/dwc_otg.c:1.50 --- src/sys/dev/usb/dwc_otg.c:1.49 Mon Apr 8 21:12:33 2013 +++ src/sys/dev/usb/dwc_otg.c Thu Aug 1 10:47:51 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: dwc_otg.c,v 1.49 2013/04/08 21:12:33 skrll Exp $ */ +/* $NetBSD: dwc_otg.c,v 1.50 2013/08/01 10:47:51 jmcneill Exp $ */ /*- * Copyright (c) 2012 Hans Petter Selasky. All rights reserved. @@ -60,7 +60,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.49 2013/04/08 21:12:33 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: dwc_otg.c,v 1.50 2013/08/01 10:47:51 jmcneill Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -605,6 +605,7 @@ dwc_otg_close_pipe(usbd_pipe_handle pipe struct dwc_otg_softc *sc = DWC_OTG_DPIPE2SC(dpipe); dpipe = dpipe; + sc = sc; KASSERT(mutex_owned(&sc->sc_lock)); } @@ -1343,6 +1344,8 @@ dwc_otg_device_ctrl_done(usbd_xfer_handl { struct dwc_otg_softc *sc = DWC_OTG_XFER2SC(xfer); + sc = sc; + DPRINTF("xfer=%p\n", xfer); KASSERT(mutex_owned(&sc->sc_lock));