summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-05-13 12:21:12 +0700
committerhathach <[email protected]>2021-05-18 12:58:24 +0700
commitdb8ea7ea1c48a04fff6446df294123690dcb7012 (patch)
tree45504be7dc8c298ece1dbf24f6226eed403bc5ab /src/device
parent791efecfdfd650e7287388e3f3210b18f7262934 (diff)
clean up
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index 280235911..9fddbc299 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -1090,7 +1090,7 @@ void dcd_event_xfer_complete (uint8_t rhport, uint8_t ep_addr, uint32_t xferred_
}
//--------------------------------------------------------------------+
-// Helper
+// USBD API For Class Driver
//--------------------------------------------------------------------+
// Parse consecutive endpoint descriptors (IN & OUT)
@@ -1184,7 +1184,6 @@ bool usbd_edpt_claim(uint8_t rhport, uint8_t ep_addr)
#if CFG_TUSB_OS != OPT_OS_NONE
// pre-check to help reducing mutex lock
TU_VERIFY((_usbd_dev.ep_status[epnum][dir].busy == 0) && (_usbd_dev.ep_status[epnum][dir].claimed == 0));
-
osal_mutex_lock(_usbd_mutex, OSAL_TIMEOUT_WAIT_FOREVER);
#endif