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:
parent
b22035de45
commit
9a7a1b0132
1 changed files with 1 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue