iwlagn: remove rxb page bookkeeping
authorJohannes Berg <johannes.berg@intel.com>
Tue, 5 Apr 2011 16:42:10 +0000 (09:42 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 7 Apr 2011 19:51:40 +0000 (15:51 -0400)
We never use the value in alloc_rxb_page,
so there's no point in keeping it either.

Signed-off-by: Johannes Berg <johannes.berg@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-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-dev.h
drivers/net/wireless/iwlwifi/iwl-rx.c

index 9a3d69d..9e47be6 100644 (file)
@@ -912,7 +912,6 @@ void iwlagn_rx_allocate(struct iwl_priv *priv, gfp_t priority)
 
                list_add_tail(&rxb->list, &rxq->rx_free);
                rxq->free_count++;
-               priv->alloc_rxb_page++;
 
                spin_unlock_irqrestore(&rxq->lock, flags);
        }
index 54b20d8..7213336 100644 (file)
@@ -1191,7 +1191,6 @@ struct iwl_priv {
        int frames_count;
 
        enum ieee80211_band band;
-       int alloc_rxb_page;
 
        void (*rx_handlers[REPLY_MAX])(struct iwl_priv *priv,
                                       struct iwl_rx_mem_buffer *rxb);
@@ -1609,12 +1608,10 @@ static inline int is_channel_ibss(const struct iwl_channel_info *ch)
 static inline void __iwl_free_pages(struct iwl_priv *priv, struct page *page)
 {
        __free_pages(page, priv->hw_params.rx_page_order);
-       priv->alloc_rxb_page--;
 }
 
 static inline void iwl_free_pages(struct iwl_priv *priv, unsigned long page)
 {
        free_pages(page, priv->hw_params.rx_page_order);
-       priv->alloc_rxb_page--;
 }
 #endif                         /* __iwl_dev_h__ */
index b5124de..c421f56 100644 (file)
@@ -898,7 +898,6 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv,
        memcpy(IEEE80211_SKB_RXCB(skb), stats, sizeof(*stats));
 
        ieee80211_rx(priv->hw, skb);
-       priv->alloc_rxb_page--;
        rxb->page = NULL;
 }