summaryrefslogtreecommitdiffstats
path: root/hw/ppc/spapr_pci.c
diff options
context:
space:
mode:
authorMarkus Armbruster2019-03-18 20:01:48 +0100
committerDavid Gibson2019-03-19 05:24:15 +0100
commite366d181ceb96109b3f4fc6f8356bea644117f9a (patch)
tree3e6bf37f8d7167398d12224a124b17bfb41b3f5b /hw/ppc/spapr_pci.c
parentppc/xics/spapr: Fix H_IPOLL implementation (diff)
downloadqemu-e366d181ceb96109b3f4fc6f8356bea644117f9a.tar.gz
qemu-e366d181ceb96109b3f4fc6f8356bea644117f9a.tar.xz
qemu-e366d181ceb96109b3f4fc6f8356bea644117f9a.zip
spapr: Remove NULL checks on error_propagate() calls
Patch created mechanically by rerunning: $ spatch --sp-file scripts/coccinelle/error_propagate_null.cocci \ --macro-file scripts/cocci-macro-file.h \ --dir . --in-place Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20190318190148.18283-1-armbru@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/spapr_pci.c')
-rw-r--r--hw/ppc/spapr_pci.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c
index 20915d2b3c..b63ed9d8da 100644
--- a/hw/ppc/spapr_pci.c
+++ b/hw/ppc/spapr_pci.c
@@ -1488,9 +1488,7 @@ static void spapr_pci_plug(HotplugHandler *plug_handler,
}
out:
- if (local_err) {
- error_propagate(errp, local_err);
- }
+ error_propagate(errp, local_err);
}
static void spapr_pci_unplug(HotplugHandler *plug_handler,