Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: musb: mark expected switch fall-throughs

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

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gustavo A. R. Silva and committed by
Greg Kroah-Hartman
169d3606 d3ac5598

+2 -1
+1 -1
drivers/usb/musb/musb_dsps.c
··· 237 237 } 238 238 musb_writeb(musb->mregs, MUSB_DEVCTL, 0); 239 239 skip_session = 1; 240 - /* fall */ 240 + /* fall through */ 241 241 242 242 case OTG_STATE_A_IDLE: 243 243 case OTG_STATE_B_IDLE:
+1
drivers/usb/musb/musb_host.c
··· 378 378 qh = first_qh(head); 379 379 break; 380 380 } 381 + /* else: fall through */ 381 382 382 383 case USB_ENDPOINT_XFER_ISOC: 383 384 case USB_ENDPOINT_XFER_INT: