]> git.proxmox.com Git - mirror_qemu.git/commit
misc: Simplify qemu_prealloc_mem() calls
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Nov 2023 14:32:57 +0000 (15:32 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:15 +0000 (16:20 +0100)
commit9c878ad6fbfc7934c9c4f6ba607c0842202afdbb
tree21441e4eb19b3411e343cd84e17082842fe8c4c3
parentb622ee98bf784b093494a81c46667bd6e6324f1a
misc: Simplify qemu_prealloc_mem() calls

Since qemu_prealloc_mem() returns whether or not an error
occured, we don't need to check the @errp pointer. Remove
local_err uses when we can return directly.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Manos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-20-philmd@linaro.org>
backends/hostmem.c
hw/virtio/virtio-mem.c