diff options
author | Markus Armbruster | 2018-12-13 18:31:13 +0100 |
---|---|---|
committer | Laurent Vivier | 2018-12-18 14:57:48 +0100 |
commit | b2322003b6389c7c98104c8626ffa342928ba83c (patch) | |
tree | fac0963c8ee737e0b1db855722b001c046db1c8e /hw/s390x/s390-pci-bus.c | |
parent | vl: Use error_fatal to simplify obvious fatal errors (again) (diff) | |
download | qemu-b2322003b6389c7c98104c8626ffa342928ba83c.tar.gz qemu-b2322003b6389c7c98104c8626ffa342928ba83c.tar.xz qemu-b2322003b6389c7c98104c8626ffa342928ba83c.zip |
error: 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
Whitespace tidied up manually.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20181213173113.11211-1-armbru@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw/s390x/s390-pci-bus.c')
-rw-r--r-- | hw/s390x/s390-pci-bus.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c index 99d0368868..f7458445c0 100644 --- a/hw/s390x/s390-pci-bus.c +++ b/hw/s390x/s390-pci-bus.c @@ -731,9 +731,7 @@ static void s390_pcihost_realize(DeviceState *dev, Error **errp) css_register_io_adapters(CSS_IO_ADAPTER_PCI, true, false, S390_ADAPTER_SUPPRESSIBLE, &local_err); - if (local_err) { - error_propagate(errp, local_err); - } + error_propagate(errp, local_err); } static int s390_pci_msix_init(S390PCIBusDevice *pbdev) |