We use device_set_desc_copy, so we do not need to free the copied text

manually.
This commit is contained in:
Nick Hibma 1999-08-28 11:35:36 +00:00
parent f748f71688
commit d88879933b
6 changed files with 4 additions and 7 deletions

View File

@ -1013,7 +1013,7 @@ static int
ugen_detach(device_t self)
{
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
device_set_desc(self, NULL);
return 0;
}

View File

@ -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

View File

@ -206,8 +206,6 @@ ukbd_detach(device_t self)
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
device_set_desc(self, NULL);
return (0);
}

View File

@ -449,7 +449,7 @@ static int
ulpt_detach(device_t self)
{
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
device_set_desc(self, NULL);
return 0;
}

View File

@ -126,7 +126,6 @@ static int
umodem_detach(device_t self)
{
DPRINTF(("%s: disconnected\n", USBDEVNAME(self)));
device_set_desc(self, NULL);
return 0;
}

View File

@ -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);