aboutsummaryrefslogtreecommitdiff
path: root/buffered_file.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2012-08-24 11:45:31 +0200
committerJuan Quintela <quintela@redhat.com>2012-10-17 18:34:59 +0200
commit3d6dff316f20137a87e099c30136358df029c0f6 (patch)
tree9fd37b05676951c3b108461da0c4950e2e38f45d /buffered_file.c
parent796b4b0f5011e30cffbc57ed5a4ab93c6f5eaab7 (diff)
downloadqemu-3d6dff316f20137a87e099c30136358df029c0f6.zip
qemu-3d6dff316f20137a87e099c30136358df029c0f6.tar.gz
qemu-3d6dff316f20137a87e099c30136358df029c0f6.tar.bz2
buffered_file: callers of buffered_flush() already check for errors
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.c7
1 files changed, 0 insertions, 7 deletions
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);