diff options
| author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2023-11-20 13:49:30 +0100 |
|---|---|---|
| committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-01-05 16:20:15 +0100 |
| commit | e199f7ad4df8b2c2efad0acdea91b936c130261c (patch) | |
| tree | ac66337d7e546c8b73638a6c062011be3b2b0a65 /backends/hostmem-file.c | |
| parent | 2d7a1eb6e65d5dd32cb9943b6fb3c81d206cd61f (diff) | |
| download | focaccia-qemu-e199f7ad4df8b2c2efad0acdea91b936c130261c.tar.gz focaccia-qemu-e199f7ad4df8b2c2efad0acdea91b936c130261c.zip | |
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>
Diffstat (limited to 'backends/hostmem-file.c')
0 files changed, 0 insertions, 0 deletions