spapr/xive: Rework error handling of kvmppc_xive_source_reset()
commit46407a2531da4ff206c1aefe8c3f6d8ad53f2de4
authorGreg Kurz <groug@kaod.org>
Mon, 10 Aug 2020 16:54:12 +0000 (10 18:54 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 13 Aug 2020 11:00:52 +0000 (13 21:00 +1000)
tree21cad31da6b38922e49df416fa75cfd1e4afdd64
parent3885ca66881f1d2568e169dcbf793fd493146d14
spapr/xive: Rework error handling of kvmppc_xive_source_reset()

Since kvmppc_xive_source_reset_one() has a return value, convert
kvmppc_xive_source_reset() 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: <159707845245.1489912.9151822670764690034.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/spapr_xive_kvm.c