projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2944fd2
)
USB: serial: kobil_sct: mark expected switch fall-through
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Tue, 24 Oct 2017 16:52:46 +0000
(11:52 -0500)
committer
Johan Hovold
<johan@kernel.org>
Mon, 30 Oct 2017 14:24:56 +0000
(15:24 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Addresses-Coverity-ID: 115014
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/kobil_sct.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/kobil_sct.c
b/drivers/usb/serial/kobil_sct.c
index
3024b9b
..
2f8fa35
100644
(file)
--- a/
drivers/usb/serial/kobil_sct.c
+++ b/
drivers/usb/serial/kobil_sct.c
@@
-491,6
+491,7
@@
static void kobil_set_termios(struct tty_struct *tty,
break;
default:
speed = 9600;
+ /* fall through */
case 9600:
urb_val = SUSBCR_SBR_9600;
break;