summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ucycom.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/ucycom.c')
-rw-r--r--sys/dev/usb/ucycom.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/sys/dev/usb/ucycom.c b/sys/dev/usb/ucycom.c
index 9d6dee7..b5623f6 100644
--- a/sys/dev/usb/ucycom.c
+++ b/sys/dev/usb/ucycom.c
@@ -177,7 +177,6 @@ ucycom_attach(device_t dev)
struct ucycom_softc *sc;
struct ucycom_device *ud;
usb_endpoint_descriptor_t *ued;
- char *devinfo;
void *urd;
int error, urdlen;
@@ -188,14 +187,6 @@ ucycom_attach(device_t dev)
sc->sc_dev = dev;
sc->sc_usbdev = uaa->device;
- /* get device description */
- /* XXX usb_devinfo() has little or no overflow protection */
- devinfo = malloc(1024, M_USBDEV, M_WAITOK);
- usbd_devinfo(sc->sc_usbdev, 0, devinfo);
- device_set_desc_copy(dev, devinfo);
- device_printf(dev, "%s\n", devinfo);
- free(devinfo, M_USBDEV);
-
/* get chip model */
for (ud = ucycom_devices; ud->model != 0; ++ud)
if (ud->vendor == uaa->vendor && ud->product == uaa->product)
OpenPOWER on IntegriCloud