]> git.proxmox.com Git - mirror_qemu.git/commit - bootdevice.c
error: Eliminate error_propagate() manually
authorMarkus Armbruster <armbru@redhat.com>
Tue, 7 Jul 2020 16:06:04 +0000 (18:06 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 10 Jul 2020 13:18:08 +0000 (15:18 +0200)
commit992861fb1e4cf410f30ec8f05bd2dc2a14a5a027
tree9d4d5de47d4ebae50838cd7f8ea39b89a3604507
parentaf175e85f92c870386ad74f466e29537b79611d3
error: Eliminate error_propagate() manually

When all we do with an Error we receive into a local variable is
propagating to somewhere else, we can just as well receive it there
right away.  The previous two commits did that for sufficiently simple
cases with Coccinelle.  Do it for several more manually.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20200707160613.848843-37-armbru@redhat.com>
18 files changed:
block/replication.c
blockdev.c
bootdevice.c
dump/dump.c
hw/block/fdc.c
hw/core/numa.c
hw/i386/x86.c
hw/intc/xive.c
hw/ppc/spapr_cpu_core.c
hw/s390x/s390-pci-bus.c
hw/s390x/s390-virtio-ccw.c
hw/s390x/sclp.c
hw/usb/bus.c
qdev-monitor.c
qga/commands-posix.c
qom/object.c
qom/qom-qobject.c
target/i386/cpu.c