drivers: usb: nrf: Fix mixing of enum types
When we build with clang we can a warning related to mixing of enum types. Just use nrfx_usbd_ep_status_t since that is the type returned by nrfx_usbd_ep_status_get. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c4e2f1b217
commit
626dd420fc
1 changed files with 2 additions and 3 deletions
|
@ -982,7 +982,7 @@ static void usbd_event_transfer_ctrl(nrfx_usbd_evt_t const *const p_event)
|
|||
if (!ev) {
|
||||
return;
|
||||
}
|
||||
nrfx_err_t err_code;
|
||||
nrfx_usbd_ep_status_t err_code;
|
||||
|
||||
ev->evt_type = USBD_EVT_EP;
|
||||
ev->evt.ep_evt.evt_type = EP_EVT_RECV_COMPLETE;
|
||||
|
@ -991,8 +991,7 @@ static void usbd_event_transfer_ctrl(nrfx_usbd_evt_t const *const p_event)
|
|||
err_code = nrfx_usbd_ep_status_get(
|
||||
p_event->data.eptransfer.ep, &ep_ctx->buf.len);
|
||||
|
||||
if ((err_code != NRFX_SUCCESS) &&
|
||||
(err_code != (nrfx_err_t)NRFX_USBD_EP_OK)) {
|
||||
if (err_code != NRFX_USBD_EP_OK) {
|
||||
LOG_ERR("_ep_status_get failed! Code: %d.",
|
||||
err_code);
|
||||
__ASSERT_NO_MSG(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue