From: Amit Beka Date: Tue, 20 Sep 2011 22:37:27 +0000 (-0700) Subject: iwlagn: remove duplicate list init X-Git-Tag: MMI-PSA29.97-13-9~18194^2~183^2~43 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5adcb81037558aa545676f78dea2b2ce6c3b5819;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Signed-off-by: Emmanuel Grumbach Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- 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;