[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 01/39] qcow2: remove a line of unnecessary code

From: Kevin Wolf
Subject: [Qemu-devel] [PATCH 01/39] qcow2: remove a line of unnecessary code
Date: Fri, 15 Jun 2012 15:33:01 +0200

From: Zhi Yong Wu <address@hidden>

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 <address@hidden>
Reviewed-by: Stefan Hajnoczi <address@hidden>
Signed-off-by: Kevin Wolf <address@hidden>
 block/qcow2-cluster.c |    1 -
 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 
         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 */

reply via email to

[Prev in Thread] Current Thread [Next in Thread]