diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-22 17:36:34 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-11 13:32:02 +0100 |
commit | db2f25309af1af0f27e0ddec4acc3b66837fa668 (patch) | |
tree | 39628fa1cf414a9fb9ba2f1620a7ac5bc02ae4df /migration.c | |
parent | fd45ee2c643bb3d55de5c54b50c23859ca631a9f (diff) |
migration: remove useless qemu_file_get_error check
migration_put_buffer is never called if there has been an error.
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>
Diffstat (limited to 'migration.c')
-rw-r--r-- | migration.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/migration.c b/migration.c index 414e0f9023..5d99999e47 100644 --- a/migration.c +++ b/migration.c @@ -523,12 +523,6 @@ static int migration_put_buffer(void *opaque, const uint8_t *buf, DPRINTF("putting %d bytes at %" PRId64 "\n", size, pos); - ret = qemu_file_get_error(s->file); - if (ret) { - DPRINTF("flush when error, bailing: %s\n", strerror(-ret)); - return ret; - } - if (size <= 0) { return size; } |