Commit e4ec1384 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

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: default avatarGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d9b9c0e0
...@@ -1339,8 +1339,10 @@ int fman_port_config(struct fman_port *port, struct fman_port_params *params) ...@@ -1339,8 +1339,10 @@ int fman_port_config(struct fman_port *port, struct fman_port_params *params)
switch (port->port_type) { switch (port->port_type) {
case FMAN_PORT_TYPE_RX: case FMAN_PORT_TYPE_RX:
set_rx_dflt_cfg(port, params); set_rx_dflt_cfg(port, params);
/* fall through */
case FMAN_PORT_TYPE_TX: case FMAN_PORT_TYPE_TX:
set_tx_dflt_cfg(port, params, &port->dts_params); set_tx_dflt_cfg(port, params, &port->dts_params);
/* fall through */
default: default:
set_dflt_cfg(port, params); set_dflt_cfg(port, params);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment