mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
NETFRONT: Use __skb_queue_purge()
Use standard routine for queue purging. Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
parent
288369cc25
commit
56cfe5d028
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user