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:
20de20b
)
[NETPOLL]: Use skb_queue_purge().
author
Stephen Hemminger
<shemminger@linux-foundation.org>
Tue, 20 Nov 2007 03:15:03 +0000
(19:15 -0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 22:54:16 +0000
(14:54 -0800)
Use standard routine for flushing queue.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/netpoll.c
b/net/core/netpoll.c
index c499b5c69bedbce96611baaec02eb9cfcb0798a6..f63a70be3cd09f70074375e8027f00451c2227a7 100644
(file)
--- a/
net/core/netpoll.c
+++ b/
net/core/netpoll.c
@@
-816,11
+816,7
@@
void netpoll_cleanup(struct netpoll *np)
cancel_rearming_delayed_work(&npinfo->tx_work);
/* clean after last, unfinished work */
- if (!skb_queue_empty(&npinfo->txq)) {
- struct sk_buff *skb;
- skb = __skb_dequeue(&npinfo->txq);
- kfree_skb(skb);
- }
+ __skb_queue_purge(&npinfo->txq);
kfree(npinfo);
np->dev->npinfo = NULL;
}