fsl/fman_port: mark expected switch fall-throughs
Subsystems (3)
PATCH 1/1 fsl/fman_port: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1397960
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/net/ethernet/freescale/fman/fman_port.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/freescale/fman/fman_port.c +2 -0
@@ -1339,8 +1339,10 @@ int fman_port_config(struct fman_port *port, struct fman_port_params *params)switch (port->port_type) {case FMAN_PORT_TYPE_RX :set_rx_dflt_cfg (port, params); +/* fall through */ case FMAN_PORT_TYPE_TX :set_tx_dflt_cfg (port, params, &port->dts_params); +/* fall through */ default :set_dflt_cfg (port, params); }
Signature · 1 line
2.7.4
From: "Gustavo A. R. Silva" <[email protected]>
Date: Wed, 8 Nov 2017 11:57:13 -0600
Quoted 5 lines
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.
Addresses-Coverity-ID: 1397960
Signed-off-by Gustavo A. R. Silva <[email protected]>
Applied to net-next.