diff options
author | Dotan Barak <dotanb@dev.mellanox.com> | 2013-06-25 11:09:35 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-26 01:29:39 +0200 |
commit | 42f1e9020e22d64d18292c6cb9182f4beeb43cad (patch) | |
tree | 6f8e10be73318eba14560c68ed87881a0099841b | |
parent | net/mlx4_en: Add prints when TX timeout occurs (diff) | |
download | linux-42f1e9020e22d64d18292c6cb9182f4beeb43cad.tar.xz linux-42f1e9020e22d64d18292c6cb9182f4beeb43cad.zip |
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: Dotan Barak <dotanb@dev.mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c index 0f91222ea3d7..9d4a1ea030d8 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c @@ -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; |