mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-31 08:28:13 +00:00
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 <garsilva@embeddedor.com> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
624916a950
commit
f93de0c27e
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue