usb: musb_core: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Fri, 27 Oct 2017 16:51:59 +0000 (11:51 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Oct 2017 08:52:39 +0000 (09:52 +0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 1397608
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_core.c

index ff5a1a8989d5a5ad5ad599463d6d34533cf13f09..889ca9b164c4d7d3ceb1cd5a0efee76a5d89627d 100644 (file)
@@ -767,6 +767,7 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
                case OTG_STATE_B_IDLE:
                        if (!musb->is_active)
                                break;
+                       /* fall through */
                case OTG_STATE_B_PERIPHERAL:
                        musb_g_suspend(musb);
                        musb->is_active = musb->g.b_hnp_enable;