From: Gustavo A. R. Silva Date: Wed, 25 Oct 2017 17:28:00 +0000 (-0500) Subject: usb: gadget: udc: dummy_hcd: mark expected switch fall-throughs X-Git-Tag: v4.19~2224^2~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f93de0c27e87ad3d28ddd094a46bbf294183a71e;p=platform%2Fkernel%2Flinux-rpi.git usb: gadget: udc: dummy_hcd: mark expected switch fall-throughs In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva Acked-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c index 664b64e..9dd26ff 100644 --- a/drivers/usb/gadget/udc/dummy_hcd.c +++ b/drivers/usb/gadget/udc/dummy_hcd.c @@ -569,10 +569,12 @@ static int dummy_enable(struct usb_ep *_ep, if (max <= 1024) break; /* save a return statement */ + /* fall through */ case USB_SPEED_FULL: if (max <= 64) break; /* save a return statement */ + /* fall through */ default: if (max <= 8) break; @@ -590,6 +592,7 @@ static int dummy_enable(struct usb_ep *_ep, if (max <= 1024) break; /* save a return statement */ + /* fall through */ case USB_SPEED_FULL: if (max <= 1023) break;