patch-2.4.6 linux/net/rose/rose_route.c
Next file: linux/net/rose/rose_subr.c
Previous file: linux/net/rose/rose_dev.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Fri Jun 29 19:38:26 2001
- Orig file:
v2.4.5/linux/net/rose/rose_route.c
- Orig date:
Fri Dec 29 14:44:46 2000
diff -u --recursive --new-file v2.4.5/linux/net/rose/rose_route.c linux/net/rose/rose_route.c
@@ -221,13 +221,11 @@
{
struct rose_neigh *s;
unsigned long flags;
- struct sk_buff *skb;
rose_stop_ftimer(rose_neigh);
rose_stop_t0timer(rose_neigh);
- while ((skb = skb_dequeue(&rose_neigh->queue)) != NULL)
- kfree_skb(skb);
+ skb_queue_purge(&rose_neigh->queue);
save_flags(flags); cli();
@@ -684,15 +682,13 @@
static void rose_del_route_by_neigh(struct rose_neigh *rose_neigh)
{
struct rose_route *rose_route, *s;
- struct sk_buff *skb;
rose_neigh->restarted = 0;
rose_stop_t0timer(rose_neigh);
rose_start_ftimer(rose_neigh);
- while ((skb = skb_dequeue(&rose_neigh->queue)) != NULL)
- kfree_skb(skb);
+ skb_queue_purge(&rose_neigh->queue);
rose_route = rose_route_list;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)