]> www.infradead.org Git - qemu-nvme.git/commit
migration/multifd: Simplify multifd_channel_connect() if else statement
authorAvihai Horon <avihaih@nvidia.com>
Sun, 31 Dec 2023 09:30:11 +0000 (11:30 +0200)
committerPeter Xu <peterx@redhat.com>
Thu, 4 Jan 2024 01:52:42 +0000 (09:52 +0800)
commita4395f5d3c06472ed70d9ef9f79878f95575be9e
tree9acd4e2e47329eb811f76baff2e5414cca47a96a
parentc77b40859a5201f01b44dc475258405e289c431f
migration/multifd: Simplify multifd_channel_connect() if else statement

The else branch in multifd_channel_connect() is redundant because when
the if branch is taken the function returns.

Simplify the code by removing the else branch.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Link: https://lore.kernel.org/r/20231231093016.14204-7-avihaih@nvidia.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/multifd.c