Skip to content

Commit ebd0476

Browse files
nfp: Fix fall-through warnings for Clang
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: KSPP#115 Acked-by: Simon Horman <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]>
1 parent c3754da commit ebd0476

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/netronome/nfp/nfp_net_repr.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ nfp_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats)
103103
case NFP_PORT_PF_PORT:
104104
case NFP_PORT_VF_PORT:
105105
nfp_repr_vnic_get_stats64(repr->port, stats);
106+
break;
106107
default:
107108
break;
108109
}

0 commit comments

Comments
 (0)