summary refs log tree commit diff stats
path: root/hw/intc/xics.c
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2017-09-09 17:06:33 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2017-09-15 10:29:48 +1000
commit9ba255365e19db6cce8ad6d03bc02db96c429641 (patch)
tree4e190b2c63b066b7145611016cd9787ba823e34e /hw/intc/xics.c
parent99372e785efe9fe6a4e30cab4e33b79b227dc28d (diff)
downloadfocaccia-qemu-9ba255365e19db6cce8ad6d03bc02db96c429641.tar.gz
focaccia-qemu-9ba255365e19db6cce8ad6d03bc02db96c429641.zip
spapr_pci: handle FDT creation errors with _FDT()
libfdt failures when creating the FDT should cause QEMU to terminate.

Let's use the _FDT() macro which does just that instead of propagating
the error to the caller. spapr_populate_pci_child_dt() no longer needs
to return a value in this case.

Note that, on the way, this get rids of the following nonsensical lines:

    g_assert(!ret);
    if (ret) {

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions