summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usbdi.h
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/usbdi.h
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/usbdi.h')
-rw-r--r--sys/dev/usb/usbdi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h
index acac65d1111..ceb1d09245a 100644
--- a/sys/dev/usb/usbdi.h
+++ b/sys/dev/usb/usbdi.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.h,v 1.58 2013/11/13 13:48:08 pirofti Exp $ */
+/* $OpenBSD: usbdi.h,v 1.59 2013/11/15 10:17:39 pirofti Exp $ */
/* $NetBSD: usbdi.h,v 1.62 2002/07/11 21:14:35 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.h,v 1.18 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -102,7 +102,7 @@ void usbd_get_xfer_status(struct usbd_xfer *xfer, void **priv,
void **buffer, u_int32_t *count, usbd_status *status);
usb_endpoint_descriptor_t *usbd_interface2endpoint_descriptor(
struct usbd_interface *iface, u_int8_t address);
-usbd_status usbd_abort_pipe(struct usbd_pipe *pipe);
+void usbd_abort_pipe(struct usbd_pipe *pipe);
usbd_status usbd_clear_endpoint_stall(struct usbd_pipe *pipe);
usbd_status usbd_clear_endpoint_stall_async(struct usbd_pipe *pipe);
void usbd_clear_endpoint_toggle(struct usbd_pipe *pipe);