summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorGreg Kurz2017-09-09 17:06:33 +0200
committerDavid Gibson2017-09-15 02:29:48 +0200
commit9ba255365e19db6cce8ad6d03bc02db96c429641 (patch)
tree4e190b2c63b066b7145611016cd9787ba823e34e /scripts
parentspapr_pci: use the common _FDT() helper (diff)
downloadqemu-9ba255365e19db6cce8ad6d03bc02db96c429641.tar.gz
qemu-9ba255365e19db6cce8ad6d03bc02db96c429641.tar.xz
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 'scripts')
0 files changed, 0 insertions, 0 deletions