]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration/multifd: Remove unnecessary usage of local Error
authorAvihai Horon <avihaih@nvidia.com>
Sun, 31 Dec 2023 09:30:16 +0000 (11:30 +0200)
committerPeter Xu <peterx@redhat.com>
Thu, 4 Jan 2024 01:52:42 +0000 (09:52 +0800)
commit3fc58efa938338a82e4d5c0c031e7e9c98e9544f
tree8ff22fb2d4d18ef25dc64cfa41b742a03132c1e4
parentb6f4c0c788d5a037197a0ed409e131ed2cec274a
migration/multifd: Remove unnecessary usage of local Error

According to Error API, usage of ERRP_GUARD() or a local Error instead
of errp is needed if errp is passed to void functions, where it is later
dereferenced to see if an error occurred.

There are several places in multifd.c that use local Error although it
is not needed. Change these places to use errp directly.

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