forked from Minki/linux
VIRTIO: 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
a01b3d766c
commit
288369cc25
@ -470,8 +470,7 @@ static void virtnet_remove(struct virtio_device *vdev)
|
||||
kfree_skb(skb);
|
||||
vi->num--;
|
||||
}
|
||||
while ((skb = __skb_dequeue(&vi->send)) != NULL)
|
||||
kfree_skb(skb);
|
||||
__skb_queue_purge(&vi->send);
|
||||
|
||||
BUG_ON(vi->num != 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user