summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2023-03-17 10:21:31 +0800
committersakumisu <[email protected]>2023-03-17 10:21:43 +0800
commit2241098561b0b04c2e7a60d379b634eb9f1ee8f6 (patch)
tree60c0fb9927778e5f1373db571cd953780d6a9be4
parent70a22c24c78f3b41e6fd86b0efc0bd8e6a31460b (diff)
disconnect sources in usbh_hport_release
-rw-r--r--core/usbh_core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/core/usbh_core.c b/core/usbh_core.c
index 798dd027..712429e2 100644
--- a/core/usbh_core.c
+++ b/core/usbh_core.c
@@ -619,10 +619,6 @@ int usbh_enumerate(struct usbh_hubport *hport)
hport->config.intf[i].class_driver = class_driver;
USB_LOG_INFO("Loading %s class driver\r\n", class_driver->driver_name);
ret = CLASS_CONNECT(hport, i);
- if (ret < 0) {
- CLASS_DISCONNECT(hport, i);
- goto errout;
- }
}
errout: