Module Name:    src
Committed By:   skrll
Date:           Tue Oct 22 09:30:04 UTC 2013

Modified Files:
        src/sys/external/bsd/dwc2: dwc2.c

Log Message:
Minor cleanup.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/external/bsd/dwc2/dwc2.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/external/bsd/dwc2/dwc2.c
diff -u src/sys/external/bsd/dwc2/dwc2.c:1.13 src/sys/external/bsd/dwc2/dwc2.c:1.14
--- src/sys/external/bsd/dwc2/dwc2.c:1.13	Tue Oct 22 09:23:34 2013
+++ src/sys/external/bsd/dwc2/dwc2.c	Tue Oct 22 09:30:04 2013
@@ -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;
 	}

Reply via email to