From e366d181ceb96109b3f4fc6f8356bea644117f9a Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Mon, 18 Mar 2019 20:01:48 +0100 Subject: 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 Message-Id: <20190318190148.18283-1-armbru@redhat.com> Signed-off-by: David Gibson --- hw/ppc/spapr_pci.c | 4 +--- 1 file changed, 1 insertion(+), 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, -- cgit v1.2.3