summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/kobil_sct.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-07-07 14:57:47 -0500
committerJohan Hovold <johan@kernel.org>2020-07-08 14:55:35 +0200
commit74b76256f3d9096431556e2afdc60027b81f41b2 (patch)
treee98f458ba1648fb3fb3ee2f8fdf64676812bb5fe /drivers/usb/serial/kobil_sct.c
parent6d0bdc42842a8507c8218244b4ced09ca698d965 (diff)
downloadlinux-stable-74b76256f3d9096431556e2afdc60027b81f41b2.tar.gz
linux-stable-74b76256f3d9096431556e2afdc60027b81f41b2.tar.bz2
linux-stable-74b76256f3d9096431556e2afdc60027b81f41b2.zip
USB: serial: use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary fall-through markings when it is the case. [1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/kobil_sct.c')
-rw-r--r--drivers/usb/serial/kobil_sct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c
index 79ce0219fdde..49aacb0a327c 100644
--- a/drivers/usb/serial/kobil_sct.c
+++ b/drivers/usb/serial/kobil_sct.c
@@ -499,7 +499,7 @@ static void kobil_set_termios(struct tty_struct *tty,
break;
default:
speed = 9600;
- /* fall through */
+ fallthrough;
case 9600:
urb_val = SUSBCR_SBR_9600;
break;