]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/loongarch/virt: Eliminate error_propagate()
authorBibo Mao <maobibo@loongson.cn>
Thu, 20 Mar 2025 03:21:56 +0000 (11:21 +0800)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 20 Mar 2025 06:58:19 +0000 (07:58 +0100)
commit0973b505fadedd208e4c3fa1698ffa0b2293006c
tree2856515b1c06e7113919cd6e449e5725b8203acd
parentd7ffc17de706e6d0178fcdbc3a7d302f5a246c3c
hw/loongarch/virt: Eliminate error_propagate()

When there is an error, it is put into a local variable and then
propagated to somewhere else. Instead the error can be set right
away, error propagation can be removed.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Message-ID: <20250320032158.1762751-5-maobibo@loongson.cn>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/loongarch/virt.c