ppc/xive: Simplify error handling in xive_tctx_realize()
commit61203f2b356f8aa7b6cfd3f792cd1f0cc7bdf99b
authorGreg Kurz <groug@kaod.org>
Mon, 10 Aug 2020 16:55:22 +0000 (10 18:55 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 13 Aug 2020 11:07:28 +0000 (13 21:07 +1000)
tree15c1a12edf35e7d35d2d5abb3d17d87818d2e327
parent6cdc0e20631faf781047b515215208660393c9a9
ppc/xive: Simplify error handling in xive_tctx_realize()

Now that kvmppc_xive_cpu_connect() returns a negative errno on failure,
use that and get rid of the local_err boilerplate.

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