From: David S. Miller Date: Tue, 23 Sep 2008 07:23:30 +0000 (-0700) Subject: zd1211: Use skb_queue_walk() instead of by-hand implementation. X-Git-Tag: v3.12-rc1~18223^2~210 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=47a227db746edbcfc8b78ac8a7787733faf6f171;p=kernel%2Fkernel-generic.git zd1211: Use skb_queue_walk() instead of by-hand implementation. Signed-off-by: David S. Miller --- diff --git a/drivers/net/wireless/zd1211rw/zd_mac.c b/drivers/net/wireless/zd1211rw/zd_mac.c index a3da014..fe1867b 100644 --- a/drivers/net/wireless/zd1211rw/zd_mac.c +++ b/drivers/net/wireless/zd1211rw/zd_mac.c @@ -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;