summary refs log tree commit diff stats
path: root/hw/hyperv/hyperv_testdev.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2020-10-19 10:49:01 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2020-10-28 01:08:53 +1100
commit6e837f98ba03bab8008b7c1a6c125298ce41de7a (patch)
tree5f9ca0f20e5c00fb8140e807c5193512bdb7c3fd /hw/hyperv/hyperv_testdev.c
parent271ced1d62e0c46089fab47c8560c4e550806d69 (diff)
downloadfocaccia-qemu-6e837f98ba03bab8008b7c1a6c125298ce41de7a.tar.gz
focaccia-qemu-6e837f98ba03bab8008b7c1a6c125298ce41de7a.zip
spapr: Simplify error handling in spapr_memory_plug()
As recommended in "qapi/error.h", add a bool return value to
spapr_add_lmbs() and spapr_add_nvdimm(), and use them instead
of local_err in spapr_memory_plug().

This allows to get rid of the error propagation overhead.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <160309734178.2739814.3488437759887793902.stgit@bahia.lan>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/hyperv/hyperv_testdev.c')
0 files changed, 0 insertions, 0 deletions