-/* $OpenBSD: dwc2.c,v 1.25 2015/03/19 10:39:17 mpi Exp $ */
+/* $OpenBSD: dwc2.c,v 1.26 2015/06/08 00:46:33 jmatthew Exp $ */
/* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */
/*-
err = dwc2_device_start(xfer);
mtx_leave(&sc->sc_lock);
- if (err)
- return err;
-
if (sc->sc_bus.use_polling)
dwc2_waitintr(sc, xfer);
- return USBD_IN_PROGRESS;
+ return err;
}
STATIC void
err = dwc2_device_start(xfer);
mtx_leave(&sc->sc_lock);
+ if (sc->sc_bus.use_polling)
+ dwc2_waitintr(sc, xfer);
+
return err;
}
err = dwc2_device_start(xfer);
mtx_leave(&sc->sc_lock);
- if (err)
- return err;
-
if (sc->sc_bus.use_polling)
dwc2_waitintr(sc, xfer);
- return USBD_IN_PROGRESS;
+ return err;
}
/* Abort a device interrupt request. */