Skip to content
Snippets Groups Projects
Commit e199f7ad authored by Philippe Mathieu-Daudé's avatar Philippe Mathieu-Daudé
Browse files

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: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: default avatarManos Pitsidianakis <manos.pitsidianakis@linaro.org>
Reviewed-by: default avatarGavin Shan <gshan@redhat.com>
Message-Id: <20231120213301.24349-16-philmd@linaro.org>
parent 2d7a1eb6
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment