summaryrefslogtreecommitdiff
path: root/net/unix/garbage.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/unix/garbage.c')
-rw-r--r--net/unix/garbage.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/unix/garbage.c b/net/unix/garbage.c
index bc89eef4ec52..5abf21e7a8dc 100644
--- a/net/unix/garbage.c
+++ b/net/unix/garbage.c
@@ -296,9 +296,6 @@ void unix_gc(void)
* Here we are. Hitlist is filled. Die.
*/
- while ((skb=__skb_dequeue(&hitlist))!=NULL) {
- kfree_skb(skb);
- }
-
+ __skb_queue_purge(&hitlist);
up(&unix_gc_sem);
}