bnxt: fix unused variable warnings
authorstephen hemminger <stephen@networkplumber.org>
Mon, 24 Jul 2017 17:25:19 +0000 (10:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2017 19:31:37 +0000 (12:31 -0700)
Fix a couple of warnings where variable ‘txq’ set but not used

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>v, i);
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index badbc3550338957817403dfb6b0f2f608b6eebb8..9835ddf1685bb08c09e6320606c775b0879b60e9 100644 (file)
@@ -5628,12 +5628,10 @@ void bnxt_tx_disable(struct bnxt *bp)
 {
        int i;
        struct bnxt_tx_ring_info *txr;
-       struct netdev_queue *txq;
 
        if (bp->tx_ring) {
                for (i = 0; i < bp->tx_nr_rings; i++) {
                        txr = &bp->tx_ring[i];
-                       txq = netdev_get_tx_queue(bp->dev, i);
                        txr->dev_state = BNXT_DEV_STATE_CLOSING;
                }
        }
@@ -5646,11 +5644,9 @@ void bnxt_tx_enable(struct bnxt *bp)
 {
        int i;
        struct bnxt_tx_ring_info *txr;
-       struct netdev_queue *txq;
 
        for (i = 0; i < bp->tx_nr_rings; i++) {
                txr = &bp->tx_ring[i];
-               txq = netdev_get_tx_queue(bp->dev, i);
                txr->dev_state = 0;
        }
        netif_tx_wake_all_queues(bp->dev);