From f77a824105b8362edaacbc92a6f182ca0dd6c2d2 Mon Sep 17 00:00:00 2001 From: zhangyuan21 Date: Thu, 2 Feb 2023 14:31:55 +0800 Subject: [PATCH] usbdev/composite: remove excess uninitialize code Signed-off-by: zhangyuan21 --- drivers/usbdev/composite.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/usbdev/composite.c b/drivers/usbdev/composite.c index cb7bda3b24..949766f31a 100644 --- a/drivers/usbdev/composite.c +++ b/drivers/usbdev/composite.c @@ -1049,11 +1049,6 @@ void composite_uninitialize(FAR void *handle) 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 */ usbdev_unregister(&alloc->drvr.drvr);