drivers: usb_dc_nrfx: remove not relevant bashing comments

Remove not relevant bashing comments.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
Johann Fischer 2019-12-09 14:06:44 +01:00 committed by Carles Cufí
commit 9a7a1b0132

View file

@ -452,7 +452,7 @@ static inline struct usbd_event *usbd_evt_alloc(void)
if (ret < 0) {
LOG_ERR("USBD event allocation failed!");
/* This should NOT happen in a properly designed system.
/*
* Allocation may fail if workqueue thread is starved or event
* queue size is too small (CONFIG_USB_NRFX_EVT_QUEUE_SIZE).
* Wipe all events, free the space and schedule
@ -464,9 +464,6 @@ static inline struct usbd_event *usbd_evt_alloc(void)
sizeof(struct usbd_event),
K_NO_WAIT);
if (ret < 0) {
/* This should never fail in a properly
* operating system.
*/
LOG_ERR("USBD event memory corrupted");
__ASSERT_NO_MSG(0);
return NULL;