summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorYevgeny Petrilin <yevgenyp@mellanox.co.il>2009-05-24 03:16:51 +0000
committerDavid S. Miller <davem@davemloft.net>2009-05-25 00:35:52 -0700
commit8e29291650ee53a8609d9cc3a303dcbe9aa9b542 (patch)
tree104144a759baf34f8ded067d71eb56b7c031a137 /drivers/net
parent3699067381a2a518b32c44411a020b007d057417 (diff)
mlx4_en: Removed redundant stride variable
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/mlx4/en_netdev.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/mlx4/en_netdev.c b/drivers/net/mlx4/en_netdev.c
index 7bcc49de163..be487fa8d9a 100644
--- a/drivers/net/mlx4/en_netdev.c
+++ b/drivers/net/mlx4/en_netdev.c
@@ -559,7 +559,6 @@ int mlx4_en_start_port(struct net_device *dev)
struct mlx4_en_rx_ring *rx_ring;
int rx_index = 0;
int tx_index = 0;
- u16 stride;
int err = 0;
int i;
int j;
@@ -573,8 +572,6 @@ int mlx4_en_start_port(struct net_device *dev)
dev->mtu = min(dev->mtu, priv->max_mtu);
mlx4_en_calc_rx_buf(dev);
mlx4_dbg(DRV, priv, "Rx buf size:%d\n", priv->rx_skb_size);
- stride = roundup_pow_of_two(sizeof(struct mlx4_en_rx_desc) +
- DS_SIZE * priv->num_frags);
/* Configure rx cq's and rings */
for (i = 0; i < priv->rx_ring_num; i++) {
cq = &priv->rx_cq[i];