diff options
| author | 2013-11-15 10:17:39 +0000 | |
|---|---|---|
| committer | 2013-11-15 10:17:39 +0000 | |
| commit | 1e087f7cf25ce711b6cef28d054ab4a68be213d2 (patch) | |
| tree | 82a2593c7a472c02bcb435788d5725f6acc6d415 /sys/dev/usb/umct.c | |
| parent | Sort-out activate functionality for ucom(4) and it's parents. (diff) | |
| download | wireguard-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/umct.c')
| -rw-r--r-- | sys/dev/usb/umct.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/usb/umct.c b/sys/dev/usb/umct.c index 680568f27d3..6fc031809c3 100644 --- a/sys/dev/usb/umct.c +++ b/sys/dev/usb/umct.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umct.c,v 1.38 2013/11/15 08:25:31 pirofti Exp $ */ +/* $OpenBSD: umct.c,v 1.39 2013/11/15 10:17:39 pirofti Exp $ */ /* $NetBSD: umct.c,v 1.10 2003/02/23 04:20:07 simonb Exp $ */ /* * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -565,10 +565,7 @@ umct_close(void *addr, int portno) DPRINTF(("umct_close: close\n")); if (sc->sc_intr_pipe != NULL) { - err = usbd_abort_pipe(sc->sc_intr_pipe); - if (err) - printf("%s: abort interrupt pipe failed: %s\n", - sc->sc_dev.dv_xname, usbd_errstr(err)); + usbd_abort_pipe(sc->sc_intr_pipe); err = usbd_close_pipe(sc->sc_intr_pipe); if (err) printf("%s: close interrupt pipe failed: %s\n", |
