]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net/mlx4/mcg: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 7 Aug 2018 23:21:05 +0000 (18:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Aug 2018 00:54:20 +0000 (17:54 -0700)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Addresses-Coverity-ID: 114792 ("Missing break in switch")
Addresses-Coverity-ID: 114793 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/mcg.c

index 4c5306dbcf113d0e6ff3f4c6a85306c1f449a7ee..ffed2d4c9403022df2f73859e33fa5f2158fe4f2 100644 (file)
@@ -1412,6 +1412,7 @@ int mlx4_multicast_attach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
        case MLX4_STEERING_MODE_A0:
                if (prot == MLX4_PROT_ETH)
                        return 0;
+               /* fall through */
 
        case MLX4_STEERING_MODE_B0:
                if (prot == MLX4_PROT_ETH)
@@ -1441,6 +1442,7 @@ int mlx4_multicast_detach(struct mlx4_dev *dev, struct mlx4_qp *qp, u8 gid[16],
        case MLX4_STEERING_MODE_A0:
                if (prot == MLX4_PROT_ETH)
                        return 0;
+               /* fall through */
 
        case MLX4_STEERING_MODE_B0:
                if (prot == MLX4_PROT_ETH)