USB: serial: kobil_sct: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 24 Oct 2017 16:52:46 +0000 (11:52 -0500)
committerJohan 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

index 3024b9b253605160a5f5e7038159bcc47ec4d1ea..2f8fa3589b2028ddc7a553c6d0280c91bc49f7c7 100644 (file)
@@ -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;