add TU_ASSERT() to check for adding new usb event
This commit is contained in:
		| @@ -180,7 +180,6 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_send(osal_queue_t qhdl, void | ||||
|     _osal_q_unlock(qhdl); | ||||
|   } | ||||
|  | ||||
|   TU_ASSERT(success); | ||||
|   return success; | ||||
| } | ||||
|  | ||||
|   | ||||
| @@ -145,7 +145,6 @@ TU_ATTR_ALWAYS_INLINE static inline bool osal_queue_send(osal_queue_t qhdl, void | ||||
|   bool success = tu_fifo_write(&qhdl->ff, data); | ||||
|   critical_section_exit(&qhdl->critsec); | ||||
|  | ||||
|   TU_ASSERT(success); | ||||
|   return success; | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach