From: Stefan Weil Date: Sun, 22 Dec 2013 14:51:22 +0000 (+0100) Subject: virtio: Fix return value for dummy function vhost_net_virtqueue_pending X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4dd72e04c2c4759782d0eb3e3aff6a36889c1e18;p=qemu.git 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 Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c index 006576db31..854997d9ba 100644 --- a/hw/net/vhost_net.c +++ b/hw/net/vhost_net.c @@ -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,