Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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);