]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Remove unnecessary usage of local Error
authorAvihai Horon <avihaih@nvidia.com>
Sun, 31 Dec 2023 09:30:15 +0000 (11:30 +0200)
committerPeter Xu <peterx@redhat.com>
Thu, 4 Jan 2024 01:52:42 +0000 (09:52 +0800)
commitb6f4c0c788d5a037197a0ed409e131ed2cec274a
tree6d0b233896fb942e4ea11c04273c81dbe37f3b25
parent4f8cf323e80c17f7d4b5604f1699591326df6262
migration: 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 migration.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: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20231231093016.14204-11-avihaih@nvidia.com
Signed-off-by: Peter Xu <peterx@redhat.com>
migration/migration.c