aboutsummaryrefslogtreecommitdiff
path: root/migration.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-07-20 13:13:59 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:58 +0200
commit2c9adcb850bba7a24caec4d666dc01deca9f7649 (patch)
tree4ca3bc645e4ae1c5f09f5160f21d3021c1d36181 /migration.c
parentc87b015bc71734db74f5bdffeda122a224c75bbb (diff)
downloadqemu-2c9adcb850bba7a24caec4d666dc01deca9f7649.zip
qemu-2c9adcb850bba7a24caec4d666dc01deca9f7649.tar.gz
qemu-2c9adcb850bba7a24caec4d666dc01deca9f7649.tar.bz2
buffered_file: unfold migrate_fd_put_ready
We only use it once, just remove the callback indirection. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@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 f6ee7cd..051b1b5 100644
--- a/migration.c
+++ b/migration.c
@@ -318,9 +318,8 @@ ssize_t migrate_fd_put_buffer(MigrationState *s, const void *data,
return ret;
}
-static void migrate_fd_put_ready(void *opaque)
+void migrate_fd_put_ready(MigrationState *s)
{
- MigrationState *s = opaque;
int ret;
if (s->state != MIG_STATE_ACTIVE) {
@@ -435,7 +434,6 @@ void migrate_fd_connect(MigrationState *s)
s->state = MIG_STATE_ACTIVE;
s->file = qemu_fopen_ops_buffered(s,
s->bandwidth_limit,
- migrate_fd_put_ready,
migrate_fd_wait_for_unfreeze,
migrate_fd_close);