diff --git a/drivers/usb/device/usb_dc_nrfx.c b/drivers/usb/device/usb_dc_nrfx.c index c07b8de4782..be814ca383e 100644 --- a/drivers/usb/device/usb_dc_nrfx.c +++ b/drivers/usb/device/usb_dc_nrfx.c @@ -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;