Skip to content

Commit

Permalink
qcow2: Drop unused cluster_data
Browse files Browse the repository at this point in the history
Reported-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Message-id: 20180702025836.20957-2-famz@redhat.com
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
  • Loading branch information
Fam Zheng authored and XanClic committed Jul 9, 2018
1 parent ec7eb2a commit 148546c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions block/qcow2.c
Expand Up @@ -3345,7 +3345,6 @@ qcow2_co_copy_range_to(BlockDriverState *bs,
int ret;
unsigned int cur_bytes; /* number of sectors in current iteration */
uint64_t cluster_offset;
uint8_t *cluster_data = NULL;
QCowL2Meta *l2meta = NULL;

assert(!bs->encrypted);
Expand Down Expand Up @@ -3404,7 +3403,6 @@ qcow2_co_copy_range_to(BlockDriverState *bs,

qemu_co_mutex_unlock(&s->lock);

qemu_vfree(cluster_data);
trace_qcow2_writev_done_req(qemu_coroutine_self(), ret);

return ret;
Expand Down

0 comments on commit 148546c

Please sign in to comment.