spapr: sanitize error handling in spapr_ics_create()
commit175d2aa038c530d07a8eb5f483c6b1c4b3df43e0
authorGreg Kurz <groug@kaod.org>
Mon, 15 May 2017 11:39:45 +0000 (15 13:39 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 24 May 2017 01:39:52 +0000 (24 11:39 +1000)
treedf9c0c13e950f44f3787d81bf59f02265a951d12
parentf63ebfe0ac9efc83ee6d3753e9b3ed7229d8b28a
spapr: sanitize error handling in spapr_ics_create()

The spapr_ics_create() function handles errors in a rather convoluted
way, with two local Error * variables. Moreover, failing to parent the
ICS object to the machine should be considered as a bug but it is
currently ignored.

This patch addresses both issues.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c