Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acac5ec0 authored by Gal Pressman's avatar Gal Pressman Committed by Saeed Mahameed
Browse files

net/mlx5e: Remove redundant check in get ethtool stats



ethtool core code makes sure data isn't NULL before calling
get_ethtool_stats, testing it again in the driver is redundant.

Signed-off-by: default avatarGal Pressman <galp@mellanox.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
parent 957f6ba8
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -203,9 +203,6 @@ void mlx5e_ethtool_get_ethtool_stats(struct mlx5e_priv *priv,
{
	int i, idx = 0;

	if (!data)
		return;

	mutex_lock(&priv->state_lock);
	mlx5e_update_stats(priv);
	mutex_unlock(&priv->state_lock);