summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_url.c
diff options
context:
space:
mode:
authorpirofti <pirofti@openbsd.org>2013-11-15 10:17:39 +0000
committerpirofti <pirofti@openbsd.org>2013-11-15 10:17:39 +0000
commit1e087f7cf25ce711b6cef28d054ab4a68be213d2 (patch)
tree82a2593c7a472c02bcb435788d5725f6acc6d415 /sys/dev/usb/if_url.c
parentSort-out activate functionality for ucom(4) and it's parents. (diff)
downloadwireguard-openbsd-1e087f7cf25ce711b6cef28d054ab4a68be213d2.tar.xz
wireguard-openbsd-1e087f7cf25ce711b6cef28d054ab4a68be213d2.zip
Clean-up usbd_abort_pipe() usage.
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return. "If it compiles, ok" mpi@
Diffstat (limited to 'sys/dev/usb/if_url.c')
-rw-r--r--sys/dev/usb/if_url.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c
index 2fe3f704b60..f2ba13e006d 100644
--- a/sys/dev/usb/if_url.c
+++ b/sys/dev/usb/if_url.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_url.c,v 1.67 2013/08/07 01:06:43 bluhm Exp $ */
+/* $OpenBSD: if_url.c,v 1.68 2013/11/15 10:17:39 pirofti Exp $ */
/* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */
/*
* Copyright (c) 2001, 2002
@@ -1138,10 +1138,7 @@ url_stop(struct ifnet *ifp, int disable)
/* Stop transfers */
/* RX endpoint */
if (sc->sc_pipe_rx != NULL) {
- err = usbd_abort_pipe(sc->sc_pipe_rx);
- if (err)
- printf("%s: abort rx pipe failed: %s\n",
- sc->sc_dev.dv_xname, usbd_errstr(err));
+ usbd_abort_pipe(sc->sc_pipe_rx);
err = usbd_close_pipe(sc->sc_pipe_rx);
if (err)
printf("%s: close rx pipe failed: %s\n",
@@ -1151,10 +1148,7 @@ url_stop(struct ifnet *ifp, int disable)
/* TX endpoint */
if (sc->sc_pipe_tx != NULL) {
- err = usbd_abort_pipe(sc->sc_pipe_tx);
- if (err)
- printf("%s: abort tx pipe failed: %s\n",
- sc->sc_dev.dv_xname, usbd_errstr(err));
+ usbd_abort_pipe(sc->sc_pipe_tx);
err = usbd_close_pipe(sc->sc_pipe_tx);
if (err)
printf("%s: close tx pipe failed: %s\n",
@@ -1166,10 +1160,7 @@ url_stop(struct ifnet *ifp, int disable)
/* XXX: Interrupt endpoint is not yet supported!! */
/* Interrupt endpoint */
if (sc->sc_pipe_intr != NULL) {
- err = usbd_abort_pipe(sc->sc_pipe_intr);
- if (err)
- printf("%s: abort intr pipe failed: %s\n",
- sc->sc_dev.dv_xname, usbd_errstr(err));
+ usbd_abort_pipe(sc->sc_pipe_intr);
err = usbd_close_pipe(sc->sc_pipe_intr);
if (err)
printf("%s: close intr pipe failed: %s\n",