diff options
author | Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> | 2021-01-17 00:47:02 +0300 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2021-01-26 14:36:37 +0100 |
commit | 143a6384f5ecb7c660c6d5d2622993c49bfbfa5d (patch) | |
tree | 676aabec1fd22912c212e97fa321e9410bf40c75 /block/block-copy.c | |
parent | 5b49c2bdc1307bc9c96c598cfe52a352f834c149 (diff) | |
download | qemu-143a6384f5ecb7c660c6d5d2622993c49bfbfa5d.zip qemu-143a6384f5ecb7c660c6d5d2622993c49bfbfa5d.tar.gz qemu-143a6384f5ecb7c660c6d5d2622993c49bfbfa5d.tar.bz2 |
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>
Diffstat (limited to 'block/block-copy.c')
-rw-r--r-- | block/block-copy.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/block/block-copy.c b/block/block-copy.c index 2ea8b28..39ae481 100644 --- a/block/block-copy.c +++ b/block/block-copy.c @@ -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) |