projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
685b2df
)
usb: core: urb: mark expected switch fall-through
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Tue, 24 Oct 2017 03:25:43 +0000
(22:25 -0500)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 1 Nov 2017 16:01:07 +0000
(17:01 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID:
1162594
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/urb.c
patch
|
blob
|
history
diff --git
a/drivers/usb/core/urb.c
b/drivers/usb/core/urb.c
index 47903d510955b03967da9a125092b6965118c0be..caca5ed6d0f36e5fa87e9b66be9e4bb7549cd249 100644
(file)
--- a/
drivers/usb/core/urb.c
+++ b/
drivers/usb/core/urb.c
@@
-492,6
+492,7
@@
int usb_submit_urb(struct urb *urb, gfp_t mem_flags)
if ((urb->interval < 6)
&& (xfertype == USB_ENDPOINT_XFER_INT))
return -EINVAL;
+ /* fall through */
default:
if (urb->interval <= 0)
return -EINVAL;