Commit 351bac30 authored by stephen hemminger's avatar stephen hemminger Committed by David S. Miller

bnxt: fix unused variable warnings

Fix a couple of warnings where variable ‘txq’ set but not used
Signed-off-by: default avatarStephen Hemminger <sthemmin@microsoft.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>v, i);
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment