mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
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: Gal Pressman <galp@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
957f6ba8ad
commit
acac5ec0c2
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue