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>
This commit is contained in:

committed by
Johan Hovold

parent
6d0bdc4284
commit
74b76256f3
@@ -332,7 +332,7 @@ static void upd78f0730_set_termios(struct tty_struct *tty,
|
||||
tty->termios.c_cflag &= ~CSIZE;
|
||||
tty->termios.c_cflag |= CS8;
|
||||
dev_warn(dev, "data size is not supported, using 8 bits\n");
|
||||
/* fall through */
|
||||
fallthrough;
|
||||
case CS8:
|
||||
request.params |= UPD78F0730_DATA_SIZE_8_BITS;
|
||||
dev_dbg(dev, "%s - 8 data bits\n", __func__);
|
||||
|
Reference in New Issue
Block a user