We use device_set_desc_copy, so we do not need to free the copied text
manually.
This commit is contained in:
parent
f748f71688
commit
d88879933b
@ -1013,7 +1013,7 @@ static int
|
||||
ugen_detach(device_t self)
|
||||
{
|
||||
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
|
||||
device_set_desc(self, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -240,7 +240,7 @@ static int
|
||||
uhid_detach(device_t self)
|
||||
{
|
||||
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
|
||||
device_set_desc(self, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
@ -206,8 +206,6 @@ ukbd_detach(device_t self)
|
||||
|
||||
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
|
||||
|
||||
device_set_desc(self, NULL);
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
@ -449,7 +449,7 @@ static int
|
||||
ulpt_detach(device_t self)
|
||||
{
|
||||
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
|
||||
device_set_desc(self, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -126,7 +126,6 @@ static int
|
||||
umodem_detach(device_t self)
|
||||
{
|
||||
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
|
||||
device_set_desc(self, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -388,7 +388,7 @@ ums_detach(device_t self)
|
||||
sc->sc_disconnected = 1;
|
||||
|
||||
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
|
||||
device_set_desc(self, NULL);
|
||||
|
||||
free(sc->sc_loc_btn, M_USB);
|
||||
free(sc->sc_ibuf, M_USB);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user