mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
block/block-copy: drop unused argument of block_copy()
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Message-Id: <20210116214705.822267-21-vsementsov@virtuozzo.com> Signed-off-by: Max Reitz <mreitz@redhat.com>
This commit is contained in:
parent
5b49c2bdc1
commit
143a6384f5
3 changed files with 4 additions and 10 deletions
|
@ -723,7 +723,7 @@ static int coroutine_fn block_copy_common(BlockCopyCallState *call_state)
|
|||
}
|
||||
|
||||
int coroutine_fn block_copy(BlockCopyState *s, int64_t start, int64_t bytes,
|
||||
bool ignore_ratelimit, bool *error_is_read)
|
||||
bool ignore_ratelimit)
|
||||
{
|
||||
BlockCopyCallState call_state = {
|
||||
.s = s,
|
||||
|
@ -733,13 +733,7 @@ int coroutine_fn block_copy(BlockCopyState *s, int64_t start, int64_t bytes,
|
|||
.max_workers = BLOCK_COPY_MAX_WORKERS,
|
||||
};
|
||||
|
||||
int ret = block_copy_common(&call_state);
|
||||
|
||||
if (error_is_read && ret < 0) {
|
||||
*error_is_read = call_state.error_is_read;
|
||||
}
|
||||
|
||||
return ret;
|
||||
return block_copy_common(&call_state);
|
||||
}
|
||||
|
||||
static void coroutine_fn block_copy_async_co_entry(void *opaque)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue