nfp: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Fri, 20 Nov 2020 18:31:30 +0000 (12:31 -0600)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 18 May 2021 00:06:13 +0000 (19:06 -0500)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a break statement instead of letting the code fall
through to the next case.

Link: https://github.com/KSPP/linux/issues/115
Acked-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/net/ethernet/netronome/nfp/nfp_net_repr.c

index b3cabc2..3b8e675 100644 (file)
@@ -103,6 +103,7 @@ nfp_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats)
        case NFP_PORT_PF_PORT:
        case NFP_PORT_VF_PORT:
                nfp_repr_vnic_get_stats64(repr->port, stats);
+               break;
        default:
                break;
        }