spapr: Simplify error handling in spapr_cpu_core_realize()
authorGreg Kurz <groug@kaod.org>
Mon, 14 Sep 2020 12:35:01 +0000 (14:35 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 8 Oct 2020 23:15:06 +0000 (10:15 +1100)
commita5af92e2e9377f753d3df6b2e050b3db6f64fb7d
tree51e9840e6aaa55c1472d90c97709bbe04d5c4129
parentcfdc52747390af88086094e51ddc7f8fbeea330e
spapr: Simplify error handling in spapr_cpu_core_realize()

As recommended in "qapi/error.h", add a bool return value to
spapr_realize_vcpu() and use it in spapr_cpu_core_realize()
in order to get rid of the error propagation overhead.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <20200914123505.612812-12-groug@kaod.org>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr_cpu_core.c