From 81fdf640e4b479df75fcedf03fb300018f054bfa Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Wed, 29 Aug 2012 19:52:16 +0200 Subject: [PATCH] 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 Reviewed-by: Paolo Bonzini --- buffered_file.c | 2 -- 1 file changed, 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; }