]> git.hungrycats.org Git - linux/commitdiff
o atm/eni: use skb_queue_walk, not open coded equivalent
authorArnaldo Carvalho de Melo <acme@conectiva.com.br>
Sun, 17 Aug 2003 20:12:31 +0000 (17:12 -0300)
committerArnaldo Carvalho de Melo <acme@conectiva.com.br>
Sun, 17 Aug 2003 20:12:31 +0000 (17:12 -0300)
drivers/atm/eni.c

index b9c02b6cd035dca2f7f46d9930d5ee6d1c159d82..a95b9bbd155df26ba228d7a045bfeff89ca69f3f 100644 (file)
@@ -2019,8 +2019,7 @@ static int eni_change_qos(struct atm_vcc *vcc,struct atm_qos *qos,int flgs)
         * segmentation buffer descriptors of this VCC.
         */
        tasklet_disable(&eni_dev->task);
-       for (skb = eni_dev->tx_queue.next; skb !=
-           (struct sk_buff *) &eni_dev->tx_queue; skb = skb->next) {
+       skb_queue_walk(&eni_dev->tx_queue, skb) {
                unsigned long dsc;
 
                if (ATM_SKB(skb)->vcc != vcc) continue;