qapi: Use returned bool to check for failure (again)
Commit 012d4c96 changed the visitor functions taking Error ** to return bool instead of void, and the commits following it used the new return value to simplify error checking. Since then a few more uses in need of the same treatment crept in. Do that. All pretty mechanical except for * balloon_stats_get_all() This is basically the same transformation commit 012d4c96 applied to the virtual walk example in include/qapi/visitor.h. * set_max_queue_size() Additionally replace "goto end of function" by return. Signed-off-by:Markus Armbruster <armbru@redhat.com> Message-Id: <20221121085054.683122-10-armbru@redhat.com> Reviewed-by:
Philippe Mathieu-Daudé <philmd@linaro.org>
Showing
- accel/kvm/kvm-all.c 1 addition, 4 deletionsaccel/kvm/kvm-all.c
- hw/core/qdev-properties-system.c 1 addition, 4 deletionshw/core/qdev-properties-system.c
- hw/i386/pc.c 1 addition, 4 deletionshw/i386/pc.c
- hw/virtio/virtio-balloon.c 9 additions, 11 deletionshw/virtio/virtio-balloon.c
- hw/virtio/virtio-mem.c 2 additions, 8 deletionshw/virtio/virtio-mem.c
- net/colo-compare.c 4 additions, 9 deletionsnet/colo-compare.c
- target/i386/kvm/kvm.c 1 addition, 4 deletionstarget/i386/kvm/kvm.c
- util/thread-context.c 2 additions, 8 deletionsutil/thread-context.c
Loading
Please register or sign in to comment