]> git.proxmox.com Git - mirror_qemu.git/commit
migration/qemu-file: remove check on writev_buffer in qemu_put_compression_data
authorWei Yang <richardw.yang@linux.intel.com>
Wed, 11 Sep 2019 13:28:38 +0000 (13:28 +0000)
committerDr. David Alan Gilbert <dgilbert@redhat.com>
Thu, 12 Sep 2019 10:23:26 +0000 (11:23 +0100)
commit89fe04b4585c97fda7c173bee97bbacb32f64e80
treee27e41f283bf7103958803450c3f6b54fc091867
parent8504ddeca0d1f592877dba8dc0db44b4d7fd8c52
migration/qemu-file: remove check on writev_buffer in qemu_put_compression_data

The check of writev_buffer is in qemu_fflush, which means it is not
harmful if it is NULL.

And removing it will make the code consistent since all other
add_to_iovec() is called without the check.

Signed-off-by: Wei Yang <richardw.yang@linux.intel.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190911132839.23336-2-richard.weiyang@gmail.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
migration/qemu-file.c