]> git.proxmox.com Git - mirror_qemu.git/commit
error: Move ERRP_GUARD() to the beginning of the function
authorMarkus Armbruster <armbru@redhat.com>
Mon, 21 Nov 2022 08:50:47 +0000 (09:50 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 14 Dec 2022 15:19:35 +0000 (16:19 +0100)
commit05e385d2a96325c1f26b874f1b832237229b8c1f
tree3e17519074c633ebc1f2875b215677788e52e4ab
parent740d6c4eba8bb44ea00550ccc97a4c49945ecc3c
error: Move ERRP_GUARD() to the beginning of the function

include/qapi/error.h advises to put ERRP_GUARD() right at the
beginning of the function, because only then can it guard the whole
function.  Clean up the few spots disregarding the advice.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20221121085054.683122-4-armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/arm/armsse.c
hw/core/machine.c
hw/virtio/vhost-vdpa.c
iothread.c
monitor/qmp-cmds.c