summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ubser.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/ubser.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/ubser.c')
-rw-r--r--sys/dev/usb/ubser.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sys/dev/usb/ubser.c b/sys/dev/usb/ubser.c
index 4a97a95..1a71b41 100644
--- a/sys/dev/usb/ubser.c
+++ b/sys/dev/usb/ubser.c
@@ -225,7 +225,6 @@ USB_ATTACH(ubser)
usb_endpoint_descriptor_t *ed;
usb_interface_descriptor_t *id;
usb_device_request_t req;
- char *devinfo;
struct tty *tp;
usbd_status err;
int i;
@@ -233,9 +232,7 @@ USB_ATTACH(ubser)
uint8_t epcount;
struct ubser_port *pp;
- devinfo = malloc(1024, M_USBDEV, M_WAITOK);
- usbd_devinfo(udev, 0, devinfo);
- USB_ATTACH_SETUP;
+ sc->sc_dev = self;
DPRINTFN(10,("\nubser_attach: sc=%p\n", sc));
@@ -376,8 +373,6 @@ USB_ATTACH(ubser)
}
ubserstartread(sc);
-
- free(devinfo, M_USBDEV);
USB_ATTACH_SUCCESS_RETURN;
fail_4:
@@ -413,8 +408,6 @@ bad:
}
DPRINTF(("ubser_attach: ATTACH ERROR\n"));
- free(devinfo, M_USBDEV);
-
USB_ATTACH_ERROR_RETURN;
}
OpenPOWER on IntegriCloud