mirror of
https://github.com/mii443/qemu.git
synced 2025-12-09 14:08:32 +00:00
migration: eliminate s->migration_file
The indirection is useless now. Backends can open s->file directly. Reviewed-by: Orit Wasserman <owasserm@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
This commit is contained in:
committed by
Juan Quintela
parent
404a7c05bc
commit
b352365f5a
@@ -35,8 +35,8 @@
|
||||
|
||||
void exec_start_outgoing_migration(MigrationState *s, const char *command, Error **errp)
|
||||
{
|
||||
s->migration_file = qemu_popen_cmd(command, "w");
|
||||
if (s->migration_file == NULL) {
|
||||
s->file = qemu_popen_cmd(command, "w");
|
||||
if (s->file == NULL) {
|
||||
error_setg_errno(errp, errno, "failed to popen the migration target");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user