diff options
author | Fam Zheng <famz@redhat.com> | 2018-07-02 10:58:33 +0800 |
---|---|---|
committer | Max Reitz <mreitz@redhat.com> | 2018-07-09 19:43:24 +0200 |
commit | 148546c8222e922c5dcc652b81cb97ea2ad4fd5b (patch) | |
tree | e72a2a79aef9384af9b035b4e5e4a83c4817aa69 | |
parent | ec7eb2ae77cc207064e17ace048f7ec0c4b85d6f (diff) | |
download | qemu-148546c8222e922c5dcc652b81cb97ea2ad4fd5b.zip qemu-148546c8222e922c5dcc652b81cb97ea2ad4fd5b.tar.gz qemu-148546c8222e922c5dcc652b81cb97ea2ad4fd5b.tar.bz2 |
qcow2: Drop unused cluster_data
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>
-rw-r--r-- | block/qcow2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/qcow2.c b/block/qcow2.c index 33b61b7..d4ba0f7 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -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); @@ -3404,7 +3403,6 @@ fail: qemu_co_mutex_unlock(&s->lock); - qemu_vfree(cluster_data); trace_qcow2_writev_done_req(qemu_coroutine_self(), ret); return ret; |