summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/ugen.c
diff options
context:
space:
mode:
authorn_hibma <n_hibma@FreeBSD.org>1999-08-28 11:35:36 +0000
committern_hibma <n_hibma@FreeBSD.org>1999-08-28 11:35:36 +0000
commitb6f921b6b3d6ee4af6f058398bc105a3c7cf751f (patch)
tree15a86c57a24cfbaf1e1b874160c8e72a1d1d2df5 /sys/dev/usb/ugen.c
parent8422690eaa75b9c970d104077d6ce63f8b963e19 (diff)
downloadFreeBSD-src-b6f921b6b3d6ee4af6f058398bc105a3c7cf751f.zip
FreeBSD-src-b6f921b6b3d6ee4af6f058398bc105a3c7cf751f.tar.gz
We use device_set_desc_copy, so we do not need to free the copied text
manually.
Diffstat (limited to 'sys/dev/usb/ugen.c')
-rw-r--r--sys/dev/usb/ugen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/ugen.c b/sys/dev/usb/ugen.c
index f217f03..0772eb8 100644
--- a/sys/dev/usb/ugen.c
+++ b/sys/dev/usb/ugen.c
@@ -1013,7 +1013,7 @@ static int
ugen_detach(device_t self)
{
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
- device_set_desc(self, NULL);
+
return 0;
}
OpenPOWER on IntegriCloud