diff options
author | Greg Kurz <groug@kaod.org> | 2020-08-10 18:54:05 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2020-08-13 21:00:52 +1000 |
commit | 3885ca66881f1d2568e169dcbf793fd493146d14 (patch) | |
tree | 0e508949f339939b6137a640a4ed832b117f0384 /include/hw/timer/bcm2835_systmr.h | |
parent | 4a6891b838e4914d25ab97a2a03f946e3c085a8f (diff) |
spapr/xive: Rework error handling of kvmppc_xive_cpu_connect()
Use error_setg_errno() instead of error_setg(strerror()). While here,
use -ret instead of errno since kvm_vcpu_enable_cap() returns a negative
errno on failure.
Use ERRP_GUARD() to ensure that errp can be passed to error_append_hint(),
and get rid of the local_err boilerplate.
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: <159707844549.1489912.4862921680328017645.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/timer/bcm2835_systmr.h')
0 files changed, 0 insertions, 0 deletions