Skip to content

Commit

Permalink
savevm: make qemu_fill_buffer() be consistent
Browse files Browse the repository at this point in the history
It was setting last_error directly once, and with the helper the other time.

Signed-off-by: Juan Quintela <quintela@redhat.com>

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Juan Quintela committed Oct 17, 2012
1 parent 3aee4be commit 02c4a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion savevm.c
Expand Up @@ -501,7 +501,7 @@ static void qemu_fill_buffer(QEMUFile *f)
f->buf_size += len;
f->buf_offset += len;
} else if (len == 0) {
f->last_error = -EIO;
qemu_file_set_error(f, -EIO);
} else if (len != -EAGAIN)
qemu_file_set_error(f, len);
}
Expand Down

0 comments on commit 02c4a05

Please sign in to comment.