Skip to content

Commit 9a7a1b0

Browse files
jfischer-nocarlescufi
authored andcommitted
drivers: usb_dc_nrfx: remove not relevant bashing comments
Remove not relevant bashing comments. Signed-off-by: Johann Fischer <[email protected]>
1 parent b22035d commit 9a7a1b0

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

drivers/usb/device/usb_dc_nrfx.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)