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 <mst@redhat.com>
This commit is contained in:
parent
fae054b070
commit
57c3229ba1
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user