Skip to contentSkip to conversation

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

PATCH In review Gustavo A. R. Silva 2 participants 2 messages Oct 24, 2017 – Oct 30, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 drivers/usb/serial/kobil_sct.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/serial/kobil_sct.c +1 -0
index 3024b9b..2f8fa35 100644
@@ -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;
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 5 lines · Gustavo A. R. Silva

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

Addresses-Coverity-ID: 115014

Now applied, thanks.

Johan