]> git.proxmox.com Git - mirror_qemu.git/commit
qapi: Use returned bool to check for failure, manual part
authorMarkus Armbruster <armbru@redhat.com>
Tue, 7 Jul 2020 16:05:47 +0000 (18:05 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 10 Jul 2020 13:18:08 +0000 (15:18 +0200)
commit14217038bc9e36246d311fa8e026a01a5d7bbd42
treec93af897bda7a8789e91d09eb89a035bbe4bcff0
parent62a35aaa310807fa161ca041ddb0f308faeb582b
qapi: Use returned bool to check for failure, manual part

The previous commit used Coccinelle to convert from checking the Error
object to checking the return value.  Convert a few more manually.
Also tweak control flow in places to conform to the conventional "if
error bail out" pattern.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20200707160613.848843-20-armbru@redhat.com>
accel/kvm/kvm-all.c
block/throttle-groups.c
bootdevice.c
hw/core/qdev-properties.c
hw/ide/qdev.c
hw/mem/nvdimm.c
hw/net/ne2000-isa.c
hw/usb/dev-storage.c
net/net.c