]> git.proxmox.com Git - mirror_qemu.git/commit - block/block-copy.c
block/block-copy: Simplify block_copy_do_copy()
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 7 May 2020 12:11:29 +0000 (14:11 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 18 May 2020 17:05:25 +0000 (19:05 +0200)
commitd7eca542228bf3ca03c615c46ea2253590d57cb7
tree1c99c25cafa32634bb1efd3390ca5ca13ccf24b2
parentc78dd00e3529f923280e2ab51e60dfcdad2c6094
block/block-copy: Simplify block_copy_do_copy()

block_copy_do_copy() is static, only used in block_copy_task_entry
with the error_is_read argument set. No need to check for it,
simplify.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200507121129.29760-3-philmd@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/block-copy.c