summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmit Beka <amit.beka@intel.com>2011-09-20 15:37:27 -0700
committerJohn W. Linville <linville@tuxdriver.com>2011-09-21 16:19:43 -0400
commit5adcb81037558aa545676f78dea2b2ce6c3b5819 (patch)
tree3306c2671da98f860d7d374729064b191cdbe72e
parent08ecf10441c79ebebe5ce6b6ff9a06c586f5895c (diff)
downloadblackbird-op-linux-5adcb81037558aa545676f78dea2b2ce6c3b5819.tar.gz
blackbird-op-linux-5adcb81037558aa545676f78dea2b2ce6c3b5819.zip
iwlagn: remove duplicate list init
iwl_trans_rx_alloc is only called from iwl_rx_init, so no need to init the lists twice. Signed-off-by: Amit Beka <amit.beka@intel.com> 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>
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-trans-pcie.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c
index 3e69e877e72c..b78ac65b2779 100644
--- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c
+++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie.c
@@ -83,8 +83,6 @@ static int iwl_trans_rx_alloc(struct iwl_trans *trans)
memset(&trans_pcie->rxq, 0, sizeof(trans_pcie->rxq));
spin_lock_init(&rxq->lock);
- INIT_LIST_HEAD(&rxq->rx_free);
- INIT_LIST_HEAD(&rxq->rx_used);
if (WARN_ON(rxq->bd || rxq->rb_stts))
return -EINVAL;
OpenPOWER on IntegriCloud