summary refs log tree commit diff stats
path: root/hw/core/qdev-properties-system.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-16 17:00:53 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-10-20 14:46:07 +0200
commit184256d261cfc773360f14a80092ace5a716bb8f (patch)
tree6e01008f2fbf276cb8c982ce09d4ec670741a896 /hw/core/qdev-properties-system.c
parent7892e7cd916436a763705ba627619ca96b140ed6 (diff)
downloadfocaccia-qemu-184256d261cfc773360f14a80092ace5a716bb8f.tar.gz
focaccia-qemu-184256d261cfc773360f14a80092ace5a716bb8f.zip
hw/virtio/virtio-pmem: Replace impossible check by assertion
The get_memory_region() handler is used when (un)plugging the
device, which can only occur *after* it is realized.

virtio_pmem_realize() ensure the instance can not be realized
without 'memdev'. Remove the superfluous check, replacing it
by an assertion.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Message-Id: <20231017140150.44995-2-philmd@linaro.org>
Diffstat (limited to 'hw/core/qdev-properties-system.c')
0 files changed, 0 insertions, 0 deletions