spapr/xive: Rework error handling in kvmppc_xive_get_queues()
commitd53482a73bba983f521d6b9652e6f68e856ab794
authorGreg Kurz <groug@kaod.org>
Mon, 10 Aug 2020 16:54:40 +0000 (10 18:54 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 13 Aug 2020 11:00:52 +0000 (13 21:00 +1000)
tree498af713537d603134754dd14a83949374ddeafb
parentf9a548edf2a54f59c37032dee3763f532e968fee
spapr/xive: Rework error handling in kvmppc_xive_get_queues()

Since kvmppc_xive_get_queue_config() has a return value, convert
kvmppc_xive_get_queues() to use it for error checking. This allows
to get rid of the local_err boiler plate.

Propagate the return value so that callers may use it as well to check
failures.

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