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,11 +35,11 @@ static void unix_wait_for_connect(int fd, void *opaque)
if (fd < 0) {
DPRINTF("migrate connect error\n");
s->migration_file = NULL;
s->file = NULL;
migrate_fd_error(s);
} else {
DPRINTF("migrate connect success\n");
s->migration_file = qemu_fopen_socket(fd, "wb");
s->file = qemu_fopen_socket(fd, "wb");
migrate_fd_connect(s);
}
}