diff options
| author | sakimisu <[email protected]> | 2022-12-25 17:03:12 +0800 |
|---|---|---|
| committer | sakimisu <[email protected]> | 2022-12-25 17:03:12 +0800 |
| commit | 2364d0a6baa05166d7474114da0d415b20984646 (patch) | |
| tree | 191184f96b40a0fca900a0d456efab31635fcb20 | |
| parent | 9f9c44d974d3e12ffce73c919fa6b43a64a45978 (diff) | |
do not use return value
| -rw-r--r-- | core/usbh_core.c | 2 |
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; } } |
