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:
@@ -470,8 +470,7 @@ static void virtnet_remove(struct virtio_device *vdev)
|
|||||||
kfree_skb(skb);
|
kfree_skb(skb);
|
||||||
vi->num--;
|
vi->num--;
|
||||||
}
|
}
|
||||||
while ((skb = __skb_dequeue(&vi->send)) != NULL)
|
__skb_queue_purge(&vi->send);
|
||||||
kfree_skb(skb);
|
|
||||||
|
|
||||||
BUG_ON(vi->num != 0);
|
BUG_ON(vi->num != 0);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user