mirror of https://gitee.com/openkylin/linux.git
mlx4_en: Removed redundant stride variable
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3699067381
commit
8e29291650
|
@ -559,7 +559,6 @@ int mlx4_en_start_port(struct net_device *dev)
|
||||||
struct mlx4_en_rx_ring *rx_ring;
|
struct mlx4_en_rx_ring *rx_ring;
|
||||||
int rx_index = 0;
|
int rx_index = 0;
|
||||||
int tx_index = 0;
|
int tx_index = 0;
|
||||||
u16 stride;
|
|
||||||
int err = 0;
|
int err = 0;
|
||||||
int i;
|
int i;
|
||||||
int j;
|
int j;
|
||||||
|
@ -573,8 +572,6 @@ int mlx4_en_start_port(struct net_device *dev)
|
||||||
dev->mtu = min(dev->mtu, priv->max_mtu);
|
dev->mtu = min(dev->mtu, priv->max_mtu);
|
||||||
mlx4_en_calc_rx_buf(dev);
|
mlx4_en_calc_rx_buf(dev);
|
||||||
mlx4_dbg(DRV, priv, "Rx buf size:%d\n", priv->rx_skb_size);
|
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 */
|
/* Configure rx cq's and rings */
|
||||||
for (i = 0; i < priv->rx_ring_num; i++) {
|
for (i = 0; i < priv->rx_ring_num; i++) {
|
||||||
cq = &priv->rx_cq[i];
|
cq = &priv->rx_cq[i];
|
||||||
|
|
Loading…
Reference in New Issue