提交 351bac30 编写于 作者: S stephen hemminger 提交者: David S. Miller

bnxt: fix unused variable warnings

Fix a couple of warnings where variable ‘txq’ set but not used
Signed-off-by: NStephen Hemminger <sthemmin@microsoft.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>v, i);
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b721cfaf
...@@ -5628,12 +5628,10 @@ void bnxt_tx_disable(struct bnxt *bp) ...@@ -5628,12 +5628,10 @@ void bnxt_tx_disable(struct bnxt *bp)
{ {
int i; int i;
struct bnxt_tx_ring_info *txr; struct bnxt_tx_ring_info *txr;
struct netdev_queue *txq;
if (bp->tx_ring) { if (bp->tx_ring) {
for (i = 0; i < bp->tx_nr_rings; i++) { for (i = 0; i < bp->tx_nr_rings; i++) {
txr = &bp->tx_ring[i]; txr = &bp->tx_ring[i];
txq = netdev_get_tx_queue(bp->dev, i);
txr->dev_state = BNXT_DEV_STATE_CLOSING; txr->dev_state = BNXT_DEV_STATE_CLOSING;
} }
} }
...@@ -5646,11 +5644,9 @@ void bnxt_tx_enable(struct bnxt *bp) ...@@ -5646,11 +5644,9 @@ void bnxt_tx_enable(struct bnxt *bp)
{ {
int i; int i;
struct bnxt_tx_ring_info *txr; struct bnxt_tx_ring_info *txr;
struct netdev_queue *txq;
for (i = 0; i < bp->tx_nr_rings; i++) { for (i = 0; i < bp->tx_nr_rings; i++) {
txr = &bp->tx_ring[i]; txr = &bp->tx_ring[i];
txq = netdev_get_tx_queue(bp->dev, i);
txr->dev_state = 0; txr->dev_state = 0;
} }
netif_tx_wake_all_queues(bp->dev); netif_tx_wake_all_queues(bp->dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册