summaryrefslogtreecommitdiff
path: root/sys/dev/usb
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2015-12-23 12:38:41 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2015-12-23 12:38:41 +0000
commit6a658e0a737b2c68a8a62b962338a1c59fb12dd6 (patch)
tree9cef567eb7e97fdc7297d3c2ea304f8777452b56 /sys/dev/usb
parentbf913f16411c5d7389fe3e890fb3cd5113b29c8b (diff)
Drop unused goto label.
Diffstat (limited to 'sys/dev/usb')
-rw-r--r--sys/dev/usb/dwc2/dwc2.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/dev/usb/dwc2/dwc2.c b/sys/dev/usb/dwc2/dwc2.c
index fc5dbbbe3f7..354e713ed82 100644
--- a/sys/dev/usb/dwc2/dwc2.c
+++ b/sys/dev/usb/dwc2/dwc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dwc2.c,v 1.35 2015/12/18 17:23:14 mmcc Exp $ */
+/* $OpenBSD: dwc2.c,v 1.36 2015/12/23 12:38:40 visa Exp $ */
/* $NetBSD: dwc2.c,v 1.32 2014/09/02 23:26:20 macallan Exp $ */
/*-
@@ -1583,14 +1583,13 @@ dwc2_init(struct dwc2_softc *sc)
err = dwc2_hcd_init(sc->sc_hsotg, sc->sc_params);
if (err) {
err = -err;
- goto fail2;
+ goto fail;
}
return 0;
-fail2:
+fail:
free(sc->sc_hsotg, M_DEVBUF, sizeof(struct dwc2_hsotg));
-fail1:
softintr_disestablish(sc->sc_rhc_si);
return err;