1
0
Fork 0

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>
hifive-unleashed-5.1
Wang Chen 2008-05-22 18:07:43 +08:00 committed by Jeff Garzik
parent a01b3d766c
commit 288369cc25
1 changed files with 1 additions and 2 deletions

View File

@ -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);