Simplify allocate_legacy code, txr pointer was breaking LEGACY compile,

thanks to Nick Rogers for pointing this out.
This commit is contained in:
Jack F Vogel 2013-04-10 17:51:39 +00:00
parent ec5cd81891
commit f0105d2d23

View File

@ -2474,7 +2474,6 @@ igb_allocate_legacy(struct adapter *adapter)
{
device_t dev = adapter->dev;
struct igb_queue *que = adapter->queues;
struct tx_ring *txr = adapter->tx_rings;
int error, rid = 0;
/* Turn off all interrupts */
@ -2494,7 +2493,7 @@ igb_allocate_legacy(struct adapter *adapter)
}
#ifndef IGB_LEGACY_TX
TASK_INIT(&txr->txq_task, 0, igb_deferred_mq_start, txr);
TASK_INIT(&que->txr->txq_task, 0, igb_deferred_mq_start, que->txr);
#endif
/*