]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
fsl/fman_port: mark expected switch fall-throughs
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Wed, 8 Nov 2017 17:57:13 +0000 (11:57 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 09:50:33 +0000 (18:50 +0900)
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 <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_port.c

index 1789b206be58396f3d1eca908d3f36289375ac9b..6552d68ea6e1268f25177ecc3757392a4324f170 100644 (file)
@@ -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);
        }