Patchwork [35/41] buffered_file: buffered_put_buffer() don't need to set last_error

login
register
mail settings
Submitter Juan Quintela
Date Oct. 2, 2012, 11:33 a.m.
Message ID <1349177616-5341-36-git-send-email-quintela@redhat.com>
Download mbox | patch
Permalink /patch/188509/
State New
Headers show

Comments

Juan Quintela - Oct. 2, 2012, 11:33 a.m.
Callers on savevm.c:qemu_fflush() will set it.

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

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
---
 buffered_file.c | 2 --
 1 file changed, 2 deletions(-)

Patch

diff --git a/buffered_file.c b/buffered_file.c
index 77928f0..ed92df1 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;
     }