Commit 4dd72e04 authored by Stefan Weil's avatar Stefan Weil Committed by Michael S. Tsirkin
Browse files

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: default avatarStefan Weil <sw@weilnetz.de>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 8977557a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,