Skip to content

Commit

Permalink
migration: remove useless qemu_file_get_error check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
bonzini authored and Juan Quintela committed Mar 11, 2013
1 parent fd45ee2 commit db2f253
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions migration.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit db2f253

Please sign in to comment.