projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
288369c
)
NETFRONT: Use __skb_queue_purge()
author
Wang Chen
<wangchen@cn.fujitsu.com>
Thu, 22 May 2008 10:09:06 +0000
(18:09 +0800)
committer
Jeff Garzik
<jgarzik@redhat.com>
Thu, 22 May 2008 18:01:03 +0000
(14:01 -0400)
Use standard routine for queue purging.
Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/xen-netfront.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/xen-netfront.c
b/drivers/net/xen-netfront.c
index 8bddff150c7099e76d66bfb4cd9e4bebe12f5194..d26f69b0184f05bac7ec906d5d4f50c11b99b458 100644
(file)
--- a/
drivers/net/xen-netfront.c
+++ b/
drivers/net/xen-netfront.c
@@
-946,8
+946,7
@@
err:
work_done++;
}
- while ((skb = __skb_dequeue(&errq)))
- kfree_skb(skb);
+ __skb_queue_purge(&errq);
work_done -= handle_incoming_queue(dev, &rxq);
@@
-1079,8
+1078,7
@@
static void xennet_release_rx_bufs(struct netfront_info *np)
}
}
- while ((skb = __skb_dequeue(&free_list)) != NULL)
- dev_kfree_skb(skb);
+ __skb_queue_purge(&free_list);
spin_unlock_bh(&np->rx_lock);
}