skb_queue_purge exists so why not using it ;-)

Index: bk-afu/net/ax25/af_ax25.c
===================================================================
--- bk-afu.orig/net/ax25/af_ax25.c      2005-03-15 23:26:35.678081272 +0000
+++ bk-afu/net/ax25/af_ax25.c   2005-03-15 23:38:31.979186952 +0000
@@ -306,9 +306,7 @@
 
                        kfree_skb(skb);
                }
-               while ((skb = skb_dequeue(&ax25->sk->sk_write_queue)) != NULL) {
-                       kfree_skb(skb);
-               }
+               skb_queue_purge(&ax25->sk->sk_write_queue);
        }
 
        if (ax25->sk != NULL) {
-
To unsubscribe from this list: send the line "unsubscribe linux-hams" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to