-/* $OpenBSD: dwc2.c,v 1.55 2021/07/23 16:23:37 deraadt Exp $ */
+/* $OpenBSD: dwc2.c,v 1.56 2021/07/23 21:47:22 mglocker Exp $ */
/* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */
/*-
STATIC void
dwc2_root_intr_close(struct usbd_pipe *pipe)
{
+ struct dwc2_softc *sc = DWC2_PIPE2SC(pipe);
+
DPRINTF("\n");
/*
* Caller must guarantee the xfer has completed first, by
* closing the pipe only after normal completion or an abort.
*/
- KASSERT(DWC2_PIPE2SC(pipe)->sc_intrxfer == NULL);
+ if (sc->sc_intrxfer == NULL)
+ panic("%s: sc->sc_intrxfer == NULL", __func__);
}
STATIC void