aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-07-20 13:16:28 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:59 +0200
commit749f7909d942f5c7425d0895242ce720cd663e92 (patch)
tree2d625090481b6ca0a59b006508bcbd694d549a15 /migration.c
parent2c9adcb850bba7a24caec4d666dc01deca9f7649 (diff)
downloadqemu-749f7909d942f5c7425d0895242ce720cd663e92.zip
qemu-749f7909d942f5c7425d0895242ce720cd663e92.tar.gz
qemu-749f7909d942f5c7425d0895242ce720cd663e92.tar.bz2
buffered_file: unfold migrate_fd_wait_for_unfreeze
We only used it once, just remove the callback indirection. Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r--migration.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/migration.c b/migration.c
index 051b1b5..30def68 100644
--- a/migration.c
+++ b/migration.c
@@ -370,9 +370,8 @@ static void migrate_fd_cancel(MigrationState *s)
migrate_fd_cleanup(s);
}
-static void migrate_fd_wait_for_unfreeze(void *opaque)
+void migrate_fd_wait_for_unfreeze(MigrationState *s)
{
- MigrationState *s = opaque;
int ret;
DPRINTF("wait for unfreeze\n");
@@ -434,7 +433,6 @@ void migrate_fd_connect(MigrationState *s)
s->state = MIG_STATE_ACTIVE;
s->file = qemu_fopen_ops_buffered(s,
s->bandwidth_limit,
- migrate_fd_wait_for_unfreeze,
migrate_fd_close);
DPRINTF("beginning savevm\n");