virtio: Fix return value for dummy function vhost_net_virtqueue_pending

cgcc complains that -ENOSYS is not a good value for 'bool'.

A dummy virtio will never have pending queue entries, so let us return
false.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
Stefan Weil 2013-12-22 15:51:22 +01:00 committed by Michael S. Tsirkin
parent 8977557ae4
commit 4dd72e04c2
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ void vhost_net_ack_features(struct vhost_net *net, unsigned features)
bool vhost_net_virtqueue_pending(VHostNetState *net, int idx)
{
return -ENOSYS;
return false;
}
void vhost_net_virtqueue_mask(VHostNetState *net, VirtIODevice *dev,