]> git.proxmox.com Git - mirror_qemu.git/commit - hw/virtio/virtio-rng.c
virtio-rng: Keep the default backend out of VirtIORNGConf
authorMarkus Armbruster <armbru@redhat.com>
Tue, 20 Aug 2019 16:06:14 +0000 (18:06 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Sep 2019 10:32:51 +0000 (06:32 -0400)
commit5f7655f6ef1583c4b15c5a6e1aa2348538f6104b
treefccd3260282d36c120ff17d52d05c873c0775500
parent6c4e9d487fea67ceaebf5942be5b76ed675d0e9a
virtio-rng: Keep the default backend out of VirtIORNGConf

The default backend is only used within virtio_rng_device_realize().
Replace VirtIORNGConf member default_backend by a local variable.
Adjust its type to reduce conversions.

While there, pass &error_abort instead of NULL when failure would be a
programming error.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20190820160615.14616-3-lvivier@redhat.com>
hw/virtio/virtio-rng.c
include/hw/virtio/virtio-rng.h