From: Zhi Yong Wu Date: Sat, 28 Apr 2012 07:37:42 +0000 (+0800) Subject: qcow2: remove a line of unnecessary code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=833e40858cb9501c5e76b3aa345e4bb5be34385a;p=qemu.git qcow2: remove a line of unnecessary code Commit 3948d1d4 removed the pointer argument we filled in with l2_offset but forgot to remove the unnecessary l2_offset assignment. Signed-off-by: Zhi Yong Wu Reviewed-by: Stefan Hajnoczi Signed-off-by: Kevin Wolf --- diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c index c173fcd488..4eb5ba7772 100644 --- a/block/qcow2-cluster.c +++ b/block/qcow2-cluster.c @@ -540,7 +540,6 @@ static int get_cluster_table(BlockDriverState *bs, uint64_t offset, if (l2_offset) { qcow2_free_clusters(bs, l2_offset, s->l2_size * sizeof(uint64_t)); } - l2_offset = s->l1_table[l1_index] & L1E_OFFSET_MASK; } /* find the cluster offset for the given disk offset */