patch-2.4.6 linux/net/netrom/nr_loopback.c

Next file: linux/net/netrom/nr_subr.c
Previous file: linux/net/netrom/nr_dev.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.5/linux/net/netrom/nr_loopback.c linux/net/netrom/nr_loopback.c
@@ -92,10 +92,6 @@
 
 void __exit nr_loopback_clear(void)
 {
-	struct sk_buff *skb;
-
 	del_timer(&loopback_timer);
-
-	while ((skb = skb_dequeue(&loopback_queue)) != NULL)
-		kfree_skb(skb);
+	skb_queue_purge(&loopback_queue);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)