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