diff options
author | Greg Kurz <groug@kaod.org> | 2017-09-09 17:06:33 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-09-15 10:29:48 +1000 |
commit | 9ba255365e19db6cce8ad6d03bc02db96c429641 (patch) | |
tree | 4e190b2c63b066b7145611016cd9787ba823e34e /target | |
parent | 99372e785efe9fe6a4e30cab4e33b79b227dc28d (diff) |
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 'target')
0 files changed, 0 insertions, 0 deletions