summaryrefslogtreecommitdiffstats
path: root/hw/virtio/vhost-user-rng.c
diff options
context:
space:
mode:
authorJonah Palmer2022-04-01 15:23:18 +0200
committerMichael S. Tsirkin2022-05-16 10:38:40 +0200
commit3857cd5c7ffd0bcc49bd2b66654af0909c847d02 (patch)
treea5d86e6d1e9b123f17d7ff1399cc05f0a8aa3df0 /hw/virtio/vhost-user-rng.c
parentvirtio/vhost-user: dynamically assign VhostUserHostNotifiers (diff)
downloadqemu-3857cd5c7ffd0bcc49bd2b66654af0909c847d02.tar.gz
qemu-3857cd5c7ffd0bcc49bd2b66654af0909c847d02.tar.xz
qemu-3857cd5c7ffd0bcc49bd2b66654af0909c847d02.zip
virtio: drop name parameter for virtio_init()
This patch drops the name parameter for the virtio_init function. The pair between the numeric device ID and the string device ID (name) of a virtio device already exists, but not in a way that lets us map between them. This patch lets us do this and removes the need for the name parameter in the virtio_init function. Signed-off-by: Jonah Palmer <jonah.palmer@oracle.com> Message-Id: <1648819405-25696-2-git-send-email-jonah.palmer@oracle.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-user-rng.c')
-rw-r--r--hw/virtio/vhost-user-rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/virtio/vhost-user-rng.c b/hw/virtio/vhost-user-rng.c
index 209ee5bf9a..08bccba9dc 100644
--- a/hw/virtio/vhost-user-rng.c
+++ b/hw/virtio/vhost-user-rng.c
@@ -203,7 +203,7 @@ static void vu_rng_device_realize(DeviceState *dev, Error **errp)
return;
}
- virtio_init(vdev, "vhost-user-rng", VIRTIO_ID_RNG, 0);
+ virtio_init(vdev, VIRTIO_ID_RNG, 0);
rng->req_vq = virtio_add_queue(vdev, 4, vu_rng_handle_output);
if (!rng->req_vq) {