Commit 0e588445 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

iwlagn: remove rxb page bookkeeping

We never use the value in alloc_rxb_page,
so there's no point in keeping it either.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c2974a1d
...@@ -912,7 +912,6 @@ void iwlagn_rx_allocate(struct iwl_priv *priv, gfp_t priority) ...@@ -912,7 +912,6 @@ void iwlagn_rx_allocate(struct iwl_priv *priv, gfp_t priority)
list_add_tail(&rxb->list, &rxq->rx_free); list_add_tail(&rxb->list, &rxq->rx_free);
rxq->free_count++; rxq->free_count++;
priv->alloc_rxb_page++;
spin_unlock_irqrestore(&rxq->lock, flags); spin_unlock_irqrestore(&rxq->lock, flags);
} }
......
...@@ -1191,7 +1191,6 @@ struct iwl_priv { ...@@ -1191,7 +1191,6 @@ struct iwl_priv {
int frames_count; int frames_count;
enum ieee80211_band band; enum ieee80211_band band;
int alloc_rxb_page;
void (*rx_handlers[REPLY_MAX])(struct iwl_priv *priv, void (*rx_handlers[REPLY_MAX])(struct iwl_priv *priv,
struct iwl_rx_mem_buffer *rxb); struct iwl_rx_mem_buffer *rxb);
...@@ -1609,12 +1608,10 @@ static inline int is_channel_ibss(const struct iwl_channel_info *ch) ...@@ -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) static inline void __iwl_free_pages(struct iwl_priv *priv, struct page *page)
{ {
__free_pages(page, priv->hw_params.rx_page_order); __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) static inline void iwl_free_pages(struct iwl_priv *priv, unsigned long page)
{ {
free_pages(page, priv->hw_params.rx_page_order); free_pages(page, priv->hw_params.rx_page_order);
priv->alloc_rxb_page--;
} }
#endif /* __iwl_dev_h__ */ #endif /* __iwl_dev_h__ */
...@@ -898,7 +898,6 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv, ...@@ -898,7 +898,6 @@ static void iwl_pass_packet_to_mac80211(struct iwl_priv *priv,
memcpy(IEEE80211_SKB_RXCB(skb), stats, sizeof(*stats)); memcpy(IEEE80211_SKB_RXCB(skb), stats, sizeof(*stats));
ieee80211_rx(priv->hw, skb); ieee80211_rx(priv->hw, skb);
priv->alloc_rxb_page--;
rxb->page = NULL; rxb->page = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment