usb: drivers: usb_dc_stm32: Fix coverity issue
Fixes coverity issue CID: 198865. Fixes #16582 Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
1d61bef39e
commit
d385db0884
1 changed files with 2 additions and 0 deletions
|
@ -963,6 +963,8 @@ void HAL_PCD_SetupStageCallback(PCD_HandleTypeDef *hpcd)
|
|||
LOG_DBG("");
|
||||
|
||||
ep_state = usb_dc_stm32_get_ep_state(EP0_OUT); /* can't fail for ep0 */
|
||||
__ASSERT(ep_state, "No corresponding ep_state for EP0");
|
||||
|
||||
ep_state->read_count = SETUP_SIZE;
|
||||
ep_state->read_offset = 0U;
|
||||
memcpy(&usb_dc_stm32_state.ep_buf[EP0_IDX],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue