aboutsummaryrefslogtreecommitdiff
path: root/block/qcow2-cluster.c
diff options
context:
space:
mode:
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>2012-04-28 15:37:42 +0800
committerKevin Wolf <kwolf@redhat.com>2012-06-15 14:03:42 +0200
commit833e40858cb9501c5e76b3aa345e4bb5be34385a (patch)
treeb24b60e1a806209c330f56d39d71b60fd8dd2487 /block/qcow2-cluster.c
parent63bb682a18acc5d2f3219ea96c4d81c1a3b50748 (diff)
downloadqemu-833e40858cb9501c5e76b3aa345e4bb5be34385a.zip
qemu-833e40858cb9501c5e76b3aa345e4bb5be34385a.tar.gz
qemu-833e40858cb9501c5e76b3aa345e4bb5be34385a.tar.bz2
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 <wuzhy@linux.vnet.ibm.com> Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/qcow2-cluster.c')
-rw-r--r--block/qcow2-cluster.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/qcow2-cluster.c b/block/qcow2-cluster.c
index c173fcd..4eb5ba7 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 */