Message ID | 20190911132839.23336-2-richard.weiyang@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | migration/qemu-file: cleanup and refine qemu-file | expand |
diff --git a/migration/qemu-file.c b/migration/qemu-file.c index e33c46764f..47f16d0e54 100644 --- a/migration/qemu-file.c +++ b/migration/qemu-file.c @@ -761,9 +761,7 @@ ssize_t qemu_put_compression_data(QEMUFile *f, z_stream *stream, } qemu_put_be32(f, blen); - if (f->ops->writev_buffer) { - add_to_iovec(f, f->buf + f->buf_index, blen, false); - } + add_to_iovec(f, f->buf + f->buf_index, blen, false); f->buf_index += blen; if (f->buf_index == IO_BUF_SIZE) { qemu_fflush(f);