[24/41] buffered_file: callers of buffered_flush() already check for errors

Submitted by Juan Quintela on Oct. 2, 2012, 11:33 a.m.

Details

Message ID 1349177616-5341-25-git-send-email-quintela@redhat.com
State New
Headers show

Commit Message

Juan Quintela Oct. 2, 2012, 11:33 a.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>

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

Patch hide | download patch | download mbox

diff --git a/buffered_file.c b/buffered_file.c
index 43e68b6..747d672 100644
--- a/buffered_file.c
+++ b/buffered_file.c
@@ -61,13 +61,6 @@  static void buffered_append(QEMUFileBuffered *s,
 static void buffered_flush(QEMUFileBuffered *s)
 {
     size_t offset = 0;
-    int error;
-
-    error = qemu_file_get_error(s->file);
-    if (error != 0) {
-        DPRINTF("flush when error, bailing: %s\n", strerror(-error));
-        return;
-    }

     DPRINTF("flushing %zu byte(s) of data\n", s->buffer_size);