Commit a01ab796 authored by Johann Fischer's avatar Johann Fischer Committed by Anas Nashif
Browse files

drivers: udc_kinetis: add missing return statement

Add the missing return statement to the branch where no slabs are
available.

Signed-off-by: default avatarJohann Fischer <johann.fischer@nordicsemi.no>
parent 1c0f241b
Loading
Loading
Loading
Loading
+2 −0
Changes for drivers/usb/udc/udc_kinetis.c: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -448,6 +448,8 @@ static void usbfsotg_event_submit(const struct device *dev,
	ret = k_mem_slab_alloc(&usbfsotg_ee_slab, (void **)&ev, K_NO_WAIT);
	if (ret) {
		udc_submit_event(dev, UDC_EVT_ERROR, ret);
		LOG_ERR("Failed to allocate slab");
		return;
	}

	ev->dev = dev;