summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/udbp.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-06-09 06:39:43 +0000
committerimp <imp@FreeBSD.org>2007-06-09 06:39:43 +0000
commit582ec1f8d6aa61d7dab4bf01ad66365299e8fe6d (patch)
treeaf8426b0f5c3233d268a819b768cbaeacd406358 /sys/dev/usb/udbp.c
parent8c690e3fb00ef2d056998dcb256eee8280eaf513 (diff)
downloadFreeBSD-src-582ec1f8d6aa61d7dab4bf01ad66365299e8fe6d.zip
FreeBSD-src-582ec1f8d6aa61d7dab4bf01ad66365299e8fe6d.tar.gz
Kill devinfo stuff. It is no longer needed.
Kill bogus bzero as necessary. Minor tidy. Expand USB_ATTACH_SETUP inline where needed.
Diffstat (limited to 'sys/dev/usb/udbp.c')
-rw-r--r--sys/dev/usb/udbp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/usb/udbp.c b/sys/dev/usb/udbp.c
index f63dffc..fd6ecb5 100644
--- a/sys/dev/usb/udbp.c
+++ b/sys/dev/usb/udbp.c
@@ -255,7 +255,6 @@ USB_ATTACH(udbp)
usb_interface_descriptor_t *id;
usb_endpoint_descriptor_t *ed, *ed_bulkin = NULL, *ed_bulkout = NULL;
usbd_status err;
- char devinfo[1024];
int i;
static int ngudbp_done_init=0;
@@ -263,8 +262,7 @@ USB_ATTACH(udbp)
/* fetch the interface handle for the first interface */
(void) usbd_device2interface_handle(uaa->device, 0, &iface);
id = usbd_get_interface_descriptor(iface);
- usbd_devinfo(uaa->device, USBD_SHOW_INTERFACE_CLASS, devinfo);
- USB_ATTACH_SETUP;
+ sc->sc_dev = self;
/* Find the two first bulk endpoints */
for (i = 0 ; i < id->bNumEndpoints; i++) {
OpenPOWER on IntegriCloud