summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-10 07:37:33 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-10 07:37:33 +0000
commit3640d8fbc3c96acfa3c60797f5d4037803d6177c (patch)
tree4c24c8f1348e3f3ba7b9c408fcd7169d002079af /sys/dev
parent0af05f03b2178d4ed66d756df0d7ec72c16248c7 (diff)
Remove unused function usb_find_desc().
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbdi_util.c20
-rw-r--r--sys/dev/usb/usbdi_util.h4
2 files changed, 2 insertions, 22 deletions
diff --git a/sys/dev/usb/usbdi_util.c b/sys/dev/usb/usbdi_util.c
index b67ab5c9ec5..08b6feab46f 100644
--- a/sys/dev/usb/usbdi_util.c
+++ b/sys/dev/usb/usbdi_util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi_util.c,v 1.28 2013/04/09 08:42:48 mpi Exp $ */
+/* $OpenBSD: usbdi_util.c,v 1.29 2013/04/10 07:37:32 mpi Exp $ */
/* $NetBSD: usbdi_util.c,v 1.40 2002/07/11 21:14:36 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi_util.c,v 1.14 1999/11/17 22:33:50 n_hibma Exp $ */
@@ -503,21 +503,3 @@ usb_detach_wakeup(struct device *dv)
DPRINTF(("usb_detach_wakeup: for %s\n", dv->dv_xname));
wakeup(dv);
}
-
-usb_descriptor_t *
-usb_find_desc(usbd_device_handle dev, int type)
-{
- usb_descriptor_t *desc;
- usb_config_descriptor_t *cd = usbd_get_config_descriptor(dev);
- uByte *p = (uByte *)cd;
- uByte *end = p + UGETW(cd->wTotalLength);
-
- while (p < end) {
- desc = (usb_descriptor_t *)p;
- if (desc->bDescriptorType == type)
- return (desc);
- p += desc->bLength;
- }
-
- return (NULL);
-}
diff --git a/sys/dev/usb/usbdi_util.h b/sys/dev/usb/usbdi_util.h
index c653c6c4342..616a5955305 100644
--- a/sys/dev/usb/usbdi_util.h
+++ b/sys/dev/usb/usbdi_util.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi_util.h,v 1.18 2013/04/09 08:42:48 mpi Exp $ */
+/* $OpenBSD: usbdi_util.h,v 1.19 2013/04/10 07:37:32 mpi Exp $ */
/* $NetBSD: usbdi_util.h,v 1.28 2002/07/11 21:14:36 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi_util.h,v 1.9 1999/11/17 22:33:50 n_hibma Exp $ */
@@ -81,5 +81,3 @@ usbd_status usbd_intr_transfer(usbd_xfer_handle xfer,
void usb_detach_wait(struct device *);
void usb_detach_wakeup(struct device *);
-
-usb_descriptor_t *usb_find_desc(usbd_device_handle dev, int type);