usb: drivers: usb_dc_stm32: Fix coverity issue
Add __ASSERT() for coverity issue CID: 198874. Assert is used instead of check since this is callback we get from stm32cube. Fixes #16573 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
eba81c6e54
commit
1d61bef39e
1 changed files with 2 additions and 0 deletions
|
@ -1009,6 +1009,8 @@ void HAL_PCD_DataInStageCallback(PCD_HandleTypeDef *hpcd, u8_t epnum)
|
|||
|
||||
LOG_DBG("epnum 0x%02x", epnum);
|
||||
|
||||
__ASSERT(ep_state, "No corresponding ep_state for ep");
|
||||
|
||||
k_sem_give(&ep_state->write_sem);
|
||||
|
||||
if (ep_state->cb) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue