buffered_file: buffered_put_buffer() don't need to set last_error
authorJuan Quintela <quintela@redhat.com>
Wed, 29 Aug 2012 17:52:16 +0000 (19:52 +0200)
committerJuan Quintela <quintela@redhat.com>
Wed, 17 Oct 2012 16:34:59 +0000 (18:34 +0200)
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

index 77928f02c118ab9991f45b1a88aa2ec5d105e35f..ed92df105360df2857501d2f8d467b49eed5d277 100644 (file)
@@ -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;
     }