summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usbdivar.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-10-19 08:29:31 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-10-19 08:29:31 +0000
commit1109ef2dc48779edb875a009b75784228acfb316 (patch)
tree13eb86d22d836079b770f001b092415b3301b3fc /sys/dev/usb/usbdivar.h
parent8743475110e7e91b408e60454f101f39f79cf583 (diff)
Make uhub_explore() return an int rather than a usbd_satus. This has
no direct impact since its return value is never checked but it allows me to get rid of one (usless) status value. Note that usbd_status should be used for USB transfers.
Diffstat (limited to 'sys/dev/usb/usbdivar.h')
-rw-r--r--sys/dev/usb/usbdivar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usbdivar.h b/sys/dev/usb/usbdivar.h
index e8e739abd68..34428f10727 100644
--- a/sys/dev/usb/usbdivar.h
+++ b/sys/dev/usb/usbdivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdivar.h,v 1.51 2013/08/13 09:26:05 mpi Exp $ */
+/* $OpenBSD: usbdivar.h,v 1.52 2013/10/19 08:29:30 mpi Exp $ */
/* $NetBSD: usbdivar.h,v 1.70 2002/07/11 21:14:36 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdivar.h,v 1.11 1999/11/17 22:33:51 n_hibma Exp $ */
@@ -84,7 +84,7 @@ struct usbd_port {
};
struct usbd_hub {
- usbd_status (*explore)(struct usbd_device *hub);
+ int (*explore)(struct usbd_device *hub);
void *hubsoftc;
usb_hub_descriptor_t hubdesc;
struct usbd_port *ports;