[PATCH 1/1] usb: gadget: missing fallthrough in composite_setup()

Marek Vasut marex at denx.de
Sun Apr 2 19:53:34 CEST 2023


On 4/1/23 09:06, Heinrich Schuchardt wrote:
> Add a missing fallthrough macro. This fixes a -Wimplicit-fallthrough
> warning.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
>   drivers/usb/gadget/composite.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
> index 2a309e624e..04b8541993 100644
> --- a/drivers/usb/gadget/composite.c
> +++ b/drivers/usb/gadget/composite.c
> @@ -1068,7 +1068,7 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
>   			if (!gadget_is_dualspeed(gadget) ||
>   			    gadget->speed >= USB_SPEED_SUPER)
>   				break;
> -
> +			fallthrough;
>   		case USB_DT_CONFIG:
>   			value = config_desc(cdev, w_value);
>   			if (value >= 0)

Applied to usb/next, thanks.


More information about the U-Boot mailing list