Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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);