Commit 288369cc authored by Wang Chen's avatar Wang Chen Committed by Jeff Garzik

VIRTIO: Use __skb_queue_purge()

Use standard routine for queue purging.
Signed-off-by: default avatarWang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent a01b3d76
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment