diff options
author | Juan Quintela <quintela@redhat.com> | 2012-07-20 13:10:54 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2012-10-17 18:34:58 +0200 |
commit | c87b015bc71734db74f5bdffeda122a224c75bbb (patch) | |
tree | 4bfa63e628b8e5ea0e7f927278a8eb2081041129 /migration.c | |
parent | c7a8f0cdd25ed552e6dba124877bd3364054c55c (diff) | |
download | qemu-c87b015bc71734db74f5bdffeda122a224c75bbb.tar.gz qemu-c87b015bc71734db74f5bdffeda122a224c75bbb.tar.bz2 qemu-c87b015bc71734db74f5bdffeda122a224c75bbb.zip |
buffered_file: unfold migrate_fd_put_buffer
We only used 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.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/migration.c b/migration.c index 330c16a97f..f6ee7cdb6a 100644 --- a/migration.c +++ b/migration.c @@ -295,10 +295,9 @@ static void migrate_fd_put_notify(void *opaque) } } -static ssize_t migrate_fd_put_buffer(void *opaque, const void *data, - size_t size) +ssize_t migrate_fd_put_buffer(MigrationState *s, const void *data, + size_t size) { - MigrationState *s = opaque; ssize_t ret; if (s->state != MIG_STATE_ACTIVE) { @@ -436,7 +435,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_buffer, migrate_fd_put_ready, migrate_fd_wait_for_unfreeze, migrate_fd_close); |