Skip to content

Commit

Permalink
compile in non-DIAGNOSTIC mode; ok mglocker
Browse files Browse the repository at this point in the history
  • Loading branch information
deraadt committed Jul 23, 2021
1 parent 12e607c commit 24f5830
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sys/dev/usb/dwc2/dwc2.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $OpenBSD: dwc2.c,v 1.54 2021/07/22 18:32:33 mglocker Exp $ */
/* $OpenBSD: dwc2.c,v 1.55 2021/07/23 16:23:37 deraadt Exp $ */
/* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */

/*-
Expand Down Expand Up @@ -859,15 +859,13 @@ dwc2_root_intr_abort(struct usbd_xfer *xfer)
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(sc->sc_intrxfer == NULL);
KASSERT(DWC2_PIPE2SC(pipe)->sc_intrxfer == NULL);
}

STATIC void
Expand Down

0 comments on commit 24f5830

Please sign in to comment.