From: Gustavo A. R. Silva Date: Tue, 7 Aug 2018 23:14:18 +0000 (-0500) Subject: cxgb3/l2t: Mark expected switch fall-through X-Git-Tag: v4.19-rc1~140^2~94^2~25 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=92072679a8036215b9ef8fd68d7ef9eef786a9e9;p=users%2Fhch%2Fblock.git cxgb3/l2t: Mark expected switch fall-through In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 114780 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/chelsio/cxgb3/l2t.c b/drivers/net/ethernet/chelsio/cxgb3/l2t.c index 248e40c6966c..0e9182d3f02c 100644 --- a/drivers/net/ethernet/chelsio/cxgb3/l2t.c +++ b/drivers/net/ethernet/chelsio/cxgb3/l2t.c @@ -136,6 +136,7 @@ again: if (e->state == L2T_STATE_STALE) e->state = L2T_STATE_VALID; spin_unlock_bh(&e->lock); + /* fall through */ case L2T_STATE_VALID: /* fast-path, send the packet on */ return cxgb3_ofld_send(dev, skb); case L2T_STATE_RESOLVING: