aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/usb/uhid.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/uhid.c')
-rw-r--r--sys/dev/usb/uhid.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/dev/usb/uhid.c b/sys/dev/usb/uhid.c
index a55944bdd0fc..e43455630d68 100644
--- a/sys/dev/usb/uhid.c
+++ b/sys/dev/usb/uhid.c
@@ -200,13 +200,8 @@ USB_ATTACH(uhid)
static int
uhid_detach(device_t self)
{
- const char *devinfo = device_get_desc(self);
-
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
- if (devinfo) {
- device_set_desc(self, NULL);
- free((void *)devinfo, M_USB);
- }
+ device_set_desc(self, NULL);
return 0;
}
#endif