usbdev/composite: remove excess uninitialize code
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
This commit is contained in:
parent
4ddcb88c65
commit
f77a824105
@ -1049,11 +1049,6 @@ void composite_uninitialize(FAR void *handle)
|
|||||||
|
|
||||||
priv = &alloc->dev;
|
priv = &alloc->dev;
|
||||||
|
|
||||||
for (i = 0; i < priv->ndevices; i++)
|
|
||||||
{
|
|
||||||
priv->device[i].compdesc.uninitialize(priv->device[i].dev);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Then unregister and destroy the composite class */
|
/* Then unregister and destroy the composite class */
|
||||||
|
|
||||||
usbdev_unregister(&alloc->drvr.drvr);
|
usbdev_unregister(&alloc->drvr.drvr);
|
||||||
|
Loading…
Reference in New Issue
Block a user