OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
796b4b0
)
buffered_file: callers of buffered_flush() already check for errors
author
Juan Quintela
<quintela@redhat.com>
Fri, 24 Aug 2012 09:45:31 +0000
(11:45 +0200)
committer
Juan Quintela
<quintela@redhat.com>
Wed, 17 Oct 2012 16:34:59 +0000
(18:34 +0200)
Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
buffered_file.c
patch
|
blob
|
history
diff --git
a/buffered_file.c
b/buffered_file.c
index
43e68b6
..
747d672
100644
(file)
--- 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);