Skip to contentSkip to conversation

: Use skb_queue_walk() in zd1211 driver.

PATCH New David Miller 1 participant 1 message Sep 23, 2008

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 1/1 : Use skb_queue_walk() in zd1211 driver.

zd1211: Use skb_queue_walk() instead of by-hand implementation.

---
 drivers/net/wireless/zd1211rw/zd_mac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/zd1211rw/zd_mac.c +1 -1
index a3da014..fe1867b 100644
@@ -611,7 +611,7 @@ static int filter_ack(struct ieee80211_hw *hw, struct ieee80211_hdr *rx_hdr,
 
 	q = &zd_hw_mac(hw)->ack_wait_queue;
 	spin_lock_irqsave(&q->lock, flags);
-	for (skb = q->next; skb != (struct sk_buff *)q; skb = skb->next) {
+	skb_queue_walk(q, skb) {
 		struct ieee80211_hdr *tx_hdr;
 
 		tx_hdr = (struct ieee80211_hdr *)skb->data;
Signature · 1 line
1.5.6.5