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

usb: core: urb: mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1162594
Signed-off-by: NGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 685b2df4
...@@ -492,6 +492,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags) ...@@ -492,6 +492,7 @@ int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
if ((urb->interval < 6) if ((urb->interval < 6)
&& (xfertype == USB_ENDPOINT_XFER_INT)) && (xfertype == USB_ENDPOINT_XFER_INT))
return -EINVAL; return -EINVAL;
/* fall through */
default: default:
if (urb->interval <= 0) if (urb->interval <= 0)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册