Skip to content

Commit 93578a2

Browse files
GustavoARSilvagregkh
authored andcommitted
usb: musb: gadget: Use fallthrough pseudo-keyword
In order to enable -Wimplicit-fallthrough for Clang[1], replace the existing /* FALLTHROUGH */ comment with the new pseudo-keyword macro fallthrough[2]. [1] https://git.kernel.org/linus/e2079e93f562c7f7a030eb7642017ee5eabaaa10 [2] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <[email protected]> Link: https://lore.kernel.org/r/20201008222849.GA18634@embeddedor Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6c8cf36 commit 93578a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/musb/musb_gadget_ep0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ static int musb_g_ep0_halt(struct usb_ep *e, int value)
10241024
case MUSB_EP0_STAGE_ACKWAIT: /* STALL for zero-length data */
10251025
case MUSB_EP0_STAGE_RX: /* control-OUT data */
10261026
csr = musb_readw(regs, MUSB_CSR0);
1027-
/* FALLTHROUGH */
1027+
fallthrough;
10281028

10291029
/* It's also OK to issue stalls during callbacks when a non-empty
10301030
* DATA stage buffer has been read (or even written).

0 commit comments

Comments
 (0)