瀏覽代碼

USB: serial: kobil_sct: mark expected switch fall-through

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>
Gustavo A. R. Silva 7 年之前
父節點
當前提交
fe1f68a08f
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      drivers/usb/serial/kobil_sct.c

+ 1 - 0
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;