summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/usbh_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/usbh_core.c b/core/usbh_core.c
index 20a73e72..b0b0a807 100644
--- a/core/usbh_core.c
+++ b/core/usbh_core.c
@@ -618,7 +618,7 @@ int usbh_enumerate(struct usbh_hubport *hport)
USB_LOG_INFO("Loading %s class driver\r\n", class_driver->driver_name);
ret = CLASS_CONNECT(hport, i);
if (ret < 0) {
- ret = CLASS_DISCONNECT(hport, i);
+ CLASS_DISCONNECT(hport, i);
goto errout;
}
}