]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
zd1211: Use skb_queue_walk() instead of by-hand implementation.
authorDavid S. Miller <davem@davemloft.net>
Tue, 23 Sep 2008 07:23:30 +0000 (00:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Sep 2008 07:23:30 +0000 (00:23 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/zd1211rw/zd_mac.c

index a3da014f928d8b5109458ea1c6f9c48d3e21998d..fe1867b25ff7fb522e57927dfa6180f5f0f177bb 100644 (file)
@@ -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;