]> git.proxmox.com Git - mirror_qemu.git/commitdiff
qcow2: remove a line of unnecessary code
authorZhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Sat, 28 Apr 2012 07:37:42 +0000 (15:37 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 15 Jun 2012 12:03:42 +0000 (14:03 +0200)
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>
block/qcow2-cluster.c

index c173fcd488e2fecc9be1258dec8fe32a3d1e5d9b..4eb5ba77720e5f6a6467dd17a5cad28be844cae4 100644 (file)
@@ -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 */