[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL v2 04/35] virtio: Fix return value for dummy function

From: Michael S. Tsirkin
Subject: [Qemu-devel] [PULL v2 04/35] virtio: Fix return value for dummy function vhost_net_virtqueue_pending
Date: Sun, 26 Jan 2014 18:05:31 +0200

From: Stefan Weil <address@hidden>

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

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

Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
 hw/net/vhost_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
index 006576d..854997d 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 
 bool vhost_net_virtqueue_pending(VHostNetState *net, int idx)
-    return -ENOSYS;
+    return false;
 void vhost_net_virtqueue_mask(VHostNetState *net, VirtIODevice *dev,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]