usb: device_next: remove initialized state checks in event processing

For the simple events, do not check whether the device driver and stack
are marked as initialized. USB device notification will reschedule
delivery if the stack is not yet marked initialized.

Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
diff --git a/drivers/usb/udc/udc_common.c b/drivers/usb/udc/udc_common.c
index 90a73d5..eeed077 100644
--- a/drivers/usb/udc/udc_common.c
+++ b/drivers/usb/udc/udc_common.c
@@ -175,10 +175,6 @@
 		.dev = dev,
 	};
 
-	if (!udc_is_initialized(dev)) {
-		return -EPERM;
-	}
-
 	return data->event_cb(dev, &drv_evt);
 }
 
diff --git a/subsys/usb/device_next/usbd_core.c b/subsys/usb/device_next/usbd_core.c
index 180d136..40999b0 100644
--- a/subsys/usb/device_next/usbd_core.c
+++ b/subsys/usb/device_next/usbd_core.c
@@ -193,8 +193,7 @@
 		k_msgq_get(&usbd_msgq, &event, K_FOREVER);
 
 		STRUCT_SECTION_FOREACH(usbd_contex, uds_ctx) {
-			if (uds_ctx->dev == event.dev &&
-			    usbd_is_initialized(uds_ctx)) {
+			if (uds_ctx->dev == event.dev) {
 				usbd_event_handler(uds_ctx, &event);
 			}
 		}