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>
This commit is contained in:
parent
796b4b0f50
commit
3d6dff316f
@ -61,13 +61,6 @@ static void buffered_append(QEMUFileBuffered *s,
|
|||||||
static void buffered_flush(QEMUFileBuffered *s)
|
static void buffered_flush(QEMUFileBuffered *s)
|
||||||
{
|
{
|
||||||
size_t offset = 0;
|
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);
|
DPRINTF("flushing %zu byte(s) of data\n", s->buffer_size);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user