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:
Paolo Bonzini
2013-02-22 17:36:47 +01:00
committed by Juan Quintela
parent 404a7c05bc
commit b352365f5a
6 changed files with 11 additions and 56 deletions

View File

@@ -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;
}