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