提交 f93de0c2 编写于 作者: G Gustavo A. R. Silva 提交者: Greg Kroah-Hartman

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: NGustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: NFelipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 624916a9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册