diff options
author | Greg Kurz | 2020-08-10 18:54:12 +0200 |
---|---|---|
committer | David Gibson | 2020-08-13 13:00:52 +0200 |
commit | 46407a2531da4ff206c1aefe8c3f6d8ad53f2de4 (patch) | |
tree | 21cad31da6b38922e49df416fa75cfd1e4afdd64 /hw/core/cpu.c | |
parent | spapr/xive: Rework error handling of kvmppc_xive_cpu_connect() (diff) | |
download | qemu-46407a2531da4ff206c1aefe8c3f6d8ad53f2de4.tar.gz qemu-46407a2531da4ff206c1aefe8c3f6d8ad53f2de4.tar.xz qemu-46407a2531da4ff206c1aefe8c3f6d8ad53f2de4.zip |
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>
Diffstat (limited to 'hw/core/cpu.c')
0 files changed, 0 insertions, 0 deletions