aboutsummaryrefslogtreecommitdiff
path: root/buffered_file.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-08-29 19:52:16 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:59 +0200
commit81fdf640e4b479df75fcedf03fb300018f054bfa (patch)
tree74b6909c03b8fe15531841bc4a7403eabee29788 /buffered_file.c
parentc10682cb031525a8bdf3999ef6a033777929d304 (diff)
buffered_file: buffered_put_buffer() don't need to set last_error
Callers on savevm.c:qemu_fflush() will set it. Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'buffered_file.c')
-rw-r--r--buffered_file.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/buffered_file.c b/buffered_file.c
index 77928f02c1..ed92df1053 100644
--- a/buffered_file.c
+++ b/buffered_file.c
@@ -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;
}