diff --git a/drivers/usb/udc/udc_common.c b/drivers/usb/udc/udc_common.c index 6147167baee..a0bc8f9da02 100644 --- a/drivers/usb/udc/udc_common.c +++ b/drivers/usb/udc/udc_common.c @@ -253,7 +253,6 @@ static void ep_update_mps(const struct device *dev, uint16_t *const mps) { struct udc_device_caps caps = udc_caps(dev); - const uint16_t spec_iso_mps = caps.hs ? 1024 : 1023; const uint16_t spec_int_mps = caps.hs ? 1024 : 64; const uint16_t spec_bulk_mps = caps.hs ? 512 : 64; @@ -269,12 +268,10 @@ static void ep_update_mps(const struct device *dev, case USB_EP_TYPE_INTERRUPT: *mps = MIN(cfg->caps.mps, spec_int_mps); break; - case USB_EP_TYPE_ISO: - *mps = MIN(cfg->caps.mps, spec_iso_mps); - break; case USB_EP_TYPE_CONTROL: - *mps = 64U; - break; + __fallthrough; + case USB_EP_TYPE_ISO: + __fallthrough; default: return; }