projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b944ebe
)
net/mlx4_en: Remove an unnecessary test
author
Dotan Barak
<
[email protected]
>
Tue, 25 Jun 2013 09:09:35 +0000
(12:09 +0300)
committer
David S. Miller
<
[email protected]
>
Tue, 25 Jun 2013 23:29:39 +0000
(16:29 -0700)
Since this variable is now part of a structure and not allocated dynamically,
this test is irrelevant now.
Signed-off-by: Dotan Barak <
[email protected]
>
Signed-off-by: Amir Vadai <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c
index 0f91222ea3d77dd1a2ff29c90521da77d560c9f3..9d4a1ea030d84a95055afbc07a08dd131d885f8d 100644
(file)
--- 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;