summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_subr.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-09 08:42:49 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-04-09 08:42:49 +0000
commit8024b3fb4bf427743b360bf2fcdef4b54113a57a (patch)
tree9d67628f77a6510dbfaf1b8c3d075d9d2f02dfb2 /sys/dev/usb/usb_subr.c
parent2fa7fe94ac6fd20c6f47e5c80dda14009167ab6c (diff)
There's no need for usbd_get_config_desc_full() so just call usbd_get_desc()
directly this also makes it easier to understand which function actually generates IO. ok mglocker@
Diffstat (limited to 'sys/dev/usb/usb_subr.c')
-rw-r--r--sys/dev/usb/usb_subr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c
index 976353cb574..b4eca5a270b 100644
--- a/sys/dev/usb/usb_subr.c
+++ b/sys/dev/usb/usb_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_subr.c,v 1.85 2013/04/01 19:49:53 mglocker Exp $ */
+/* $OpenBSD: usb_subr.c,v 1.86 2013/04/09 08:42:48 mpi Exp $ */
/* $NetBSD: usb_subr.c,v 1.103 2003/01/10 11:19:13 augustss Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $ */
@@ -1424,7 +1424,7 @@ usbd_get_cdesc(usbd_device_handle dev, int index, int *lenp)
if (lenp)
*lenp = len;
cdesc = malloc(len, M_TEMP, M_WAITOK);
- err = usbd_get_config_desc_full(dev, index, cdesc, len);
+ err = usbd_get_desc(dev, UDESC_CONFIG, index, len, cdesc);
if (err) {
free(cdesc, M_TEMP);
return (0);