Skip to content

Commit

Permalink
buffered_file: buffered_put_buffer() don't need to set last_error
Browse files Browse the repository at this point in the history
Callers on savevm.c:qemu_fflush() will set it.

Signed-off-by: Juan Quintela <quintela@redhat.com>

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Juan Quintela committed Oct 17, 2012
1 parent c10682c commit 81fdf64
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions buffered_file.c
Expand Up @@ -120,8 +120,6 @@ static int buffered_put_buffer(void *opaque, const uint8_t *buf, int64_t pos, in
error = buffered_flush(s);
if (error < 0) {
DPRINTF("buffered flush error. bailing: %s\n", strerror(-error));
qemu_file_set_error(s->file, error);

return error;
}

Expand Down

0 comments on commit 81fdf64

Please sign in to comment.