iwlwifi: tid_data is taken twice in iwl_trans_pcie_tx_agg_alloc
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Fri, 18 Nov 2011 00:05:12 +0000 (16:05 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Nov 2011 21:20:48 +0000 (16:20 -0500)
Remove this redundancy.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c

index b93acce08bd2866c184c5a551cf28045e9695f0e..79331fb10aa5664395624b5adcab7caedcdd0c16 100644 (file)
@@ -559,7 +559,6 @@ int iwl_trans_pcie_tx_agg_alloc(struct iwl_trans *trans,
        tid_data->agg.txq_id = txq_id;
        iwl_set_swq_id(&trans_pcie->txq[txq_id], get_ac_from_tid(tid), txq_id);
 
-       tid_data = &trans->shrd->tid_data[sta_id][tid];
        if (tid_data->tfds_in_queue == 0) {
                IWL_DEBUG_TX_QUEUES(trans, "HW queue is empty\n");
                tid_data->agg.state = IWL_AGG_ON;