diff options
author | Fabiano Rosas <farosas@suse.de> | 2024-02-06 18:51:15 -0300 |
---|---|---|
committer | Peter Xu <peterx@redhat.com> | 2024-02-07 09:53:18 +0800 |
commit | bd8b0a8f82d8fc17aa285ab963ba75675c2fbe7a (patch) | |
tree | a7c81e070aec705264198bdee1468784fe0342c5 /migration/migration.c | |
parent | a2a63c4abd52f4e3ff4046dcb67fe44ebf0bb8de (diff) | |
download | qemu-bd8b0a8f82d8fc17aa285ab963ba75675c2fbe7a.zip qemu-bd8b0a8f82d8fc17aa285ab963ba75675c2fbe7a.tar.gz qemu-bd8b0a8f82d8fc17aa285ab963ba75675c2fbe7a.tar.bz2 |
migration/multifd: Move multifd_send_setup error handling in to the function
Hide the error handling inside multifd_send_setup to make it cleaner
for the next patch to move the function around.
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Fabiano Rosas <farosas@suse.de>
Link: https://lore.kernel.org/r/20240206215118.6171-4-farosas@suse.de
Signed-off-by: Peter Xu <peterx@redhat.com>
Diffstat (limited to 'migration/migration.c')
-rw-r--r-- | migration/migration.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/migration/migration.c b/migration/migration.c index b427be8..6432a81 100644 --- a/migration/migration.c +++ b/migration/migration.c @@ -3635,11 +3635,7 @@ void migrate_fd_connect(MigrationState *s, Error *error_in) return; } - if (multifd_send_setup(&local_err) != 0) { - migrate_set_error(s, local_err); - error_report_err(local_err); - migrate_set_state(&s->state, MIGRATION_STATUS_SETUP, - MIGRATION_STATUS_FAILED); + if (!multifd_send_setup()) { migrate_fd_cleanup(s); return; } |