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

Commit 42f1e902 authored by Dotan Barak's avatar Dotan Barak Committed by David S. Miller
Browse files

net/mlx4_en: Remove an unnecessary test



Since this variable is now part of a structure and not allocated dynamically,
this test is irrelevant now.

Signed-off-by: default avatarDotan Barak <dotanb@dev.mellanox.com>
Signed-off-by: default avatarAmir Vadai <amirv@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b944ebec
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -207,9 +207,6 @@ static int mlx4_en_dcbnl_ieee_getmaxrate(struct net_device *dev,
	struct mlx4_en_priv *priv = netdev_priv(dev);
	int i;

	if (!priv->maxrate)
		return -EINVAL;

	for (i = 0; i < IEEE_8021QAZ_MAX_TCS; i++)
		maxrate->tc_maxrate[i] =
			priv->maxrate[i] * MLX4_RATELIMIT_UNITS_IN_KB;