File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -452,7 +452,7 @@ static inline struct usbd_event *usbd_evt_alloc(void)
452452 if (ret < 0 ) {
453453 LOG_ERR ("USBD event allocation failed!" );
454454
455- /* This should NOT happen in a properly designed system.
455+ /*
456456 * Allocation may fail if workqueue thread is starved or event
457457 * queue size is too small (CONFIG_USB_NRFX_EVT_QUEUE_SIZE).
458458 * Wipe all events, free the space and schedule
@@ -464,9 +464,6 @@ static inline struct usbd_event *usbd_evt_alloc(void)
464464 sizeof (struct usbd_event ),
465465 K_NO_WAIT );
466466 if (ret < 0 ) {
467- /* This should never fail in a properly
468- * operating system.
469- */
470467 LOG_ERR ("USBD event memory corrupted" );
471468 __ASSERT_NO_MSG (0 );
472469 return NULL ;
You can’t perform that action at this time.
0 commit comments