Skip to content

Commit ec529b4

Browse files
Dan CarpenterSaeed Mahameed
authored andcommitted
net/mlx5: remove erroneous fallthrough
This isn't a fall through because it was after a return statement. The fall through annotation leads to a Smatch warning: drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c:246 mlx5e_ethtool_get_sset_count() warn: ignoring unreachable code. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Gustavo A. R. Silva <gustavoars@kernel.org>
1 parent 19f5b63 commit ec529b4

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ int mlx5e_ethtool_get_sset_count(struct mlx5e_priv *priv, int sset)
243243
return MLX5E_NUM_PFLAGS;
244244
case ETH_SS_TEST:
245245
return mlx5e_self_test_num(priv);
246-
fallthrough;
247246
default:
248247
return -EOPNOTSUPP;
249248
}

0 commit comments

Comments
 (0)