]> xenbits.xensource.com Git - qemu-xen.git/commit
spapr/xive: Simplify error handling of kvmppc_xive_cpu_synchronize_state()
authorGreg Kurz <groug@kaod.org>
Mon, 10 Aug 2020 16:55:29 +0000 (18:55 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 13 Aug 2020 11:09:38 +0000 (21:09 +1000)
commit1118b6b72719ff83f2be1efc11d7248cf225074c
tree9733f582822bb3de833e38ee65cba36ca4503d2d
parent61203f2b356f8aa7b6cfd3f792cd1f0cc7bdf99b
spapr/xive: Simplify error handling of kvmppc_xive_cpu_synchronize_state()

Now that kvmppc_xive_cpu_get_state() returns negative on error, use that
and get rid of the temporary Error object and error_propagate().

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <159707852916.1489912.8376334685349668124.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive_kvm.c
include/hw/ppc/xive.h