]> git.proxmox.com Git - mirror_qemu.git/commit
backends: Simplify host_memory_backend_memory_complete()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Mon, 20 Nov 2023 12:49:30 +0000 (13:49 +0100)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Fri, 5 Jan 2024 15:20:15 +0000 (16:20 +0100)
commite199f7ad4df8b2c2efad0acdea91b936c130261c
treeac66337d7e546c8b73638a6c062011be3b2b0a65
parent2d7a1eb6e65d5dd32cb9943b6fb3c81d206cd61f
backends: Simplify host_memory_backend_memory_complete()

Return early if bc->alloc is NULL. De-indent the if() ladder.

Note, this avoids a pointless call to error_propagate() with
errp=NULL at the 'out:' label.

Change trivial when reviewed with 'git-diff --ignore-all-space'.

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-16-philmd@linaro.org>
backends/hostmem.c