Minor cleanup.
This commit is contained in:
parent
3216ed5b41
commit
ff3d395db7
9
sys/external/bsd/dwc2/dwc2.c
vendored
9
sys/external/bsd/dwc2/dwc2.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dwc2.c,v 1.13 2013/10/22 09:23:34 skrll Exp $ */
|
||||
/* $NetBSD: dwc2.c,v 1.14 2013/10/22 09:30:04 skrll Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2013 The NetBSD Foundation, Inc.
|
||||
@ -30,7 +30,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.13 2013/10/22 09:23:34 skrll Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwc2.c,v 1.14 2013/10/22 09:30:04 skrll Exp $");
|
||||
|
||||
#include "opt_usb.h"
|
||||
|
||||
@ -1359,7 +1359,7 @@ dwc2_device_start(usbd_xfer_handle xfer)
|
||||
/* might need to check cpu_intr_p */
|
||||
retval = dwc2_hcd_urb_enqueue(hsotg, dwc2_urb, &dpipe->priv, 0);
|
||||
if (retval)
|
||||
goto fail2;
|
||||
goto fail;
|
||||
|
||||
if (xfer->timeout && !sc->sc_bus.use_polling) {
|
||||
callout_reset(&xfer->timeout_handle, mstohz(xfer->timeout),
|
||||
@ -1374,7 +1374,7 @@ dwc2_device_start(usbd_xfer_handle xfer)
|
||||
mutex_spin_exit(&hsotg->lock);
|
||||
}
|
||||
|
||||
fail2:
|
||||
fail:
|
||||
// mutex_exit(&sc->sc_lock);
|
||||
|
||||
switch (retval) {
|
||||
@ -1390,7 +1390,6 @@ fail2:
|
||||
err = USBD_IOERROR;
|
||||
}
|
||||
|
||||
// fail1:
|
||||
if (err) {
|
||||
dpipe->xfer = NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user