diff options
author | Wang Chen <wangchen@cn.fujitsu.com> | 2008-05-22 06:07:43 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-05-22 14:01:02 -0400 |
commit | 288369cc2580178ef6ed7c5c63cc1ef08c803250 (patch) | |
tree | c5537f4209554817e5db1efd0435fb9ca631618a /drivers/net/virtio_net.c | |
parent | a01b3d766c0ad3e63978b0f6faf4004688f13522 (diff) |
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>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index f926b5ab3d09..fe7cdf2a2a23 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c | |||
@@ -470,8 +470,7 @@ static void virtnet_remove(struct virtio_device *vdev) | |||
470 | kfree_skb(skb); | 470 | kfree_skb(skb); |
471 | vi->num--; | 471 | vi->num--; |
472 | } | 472 | } |
473 | while ((skb = __skb_dequeue(&vi->send)) != NULL) | 473 | __skb_queue_purge(&vi->send); |
474 | kfree_skb(skb); | ||
475 | 474 | ||
476 | BUG_ON(vi->num != 0); | 475 | BUG_ON(vi->num != 0); |
477 | 476 | ||