From 2c65095772778729d12dbbd3257998bfed2f72fa Mon Sep 17 00:00:00 2001 From: "Michael S. Tsirkin" Date: Sun, 9 May 2010 14:35:43 +0300 Subject: [PATCH] virtio-net: return with value in void function virtio-net has return with value in a void function. No idea why does it compile with gcc, but this isn't standard C. Signed-off-by: Michael S. Tsirkin --- hw/virtio-net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index d602c56..cb664e6 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -227,7 +227,7 @@ static void virtio_net_set_features(VirtIODevice *vdev, uint32_t features) if (!tap_get_vhost_net(n->nic->nc.peer)) { return; } - return vhost_net_ack_features(tap_get_vhost_net(n->nic->nc.peer), features); + vhost_net_ack_features(tap_get_vhost_net(n->nic->nc.peer), features); } static int virtio_net_handle_rx_mode(VirtIONet *n, uint8_t cmd, -- 2.7.4