From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:44679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWex-0000Lf-KG for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:34:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SfWen-0004d2-L4 for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:33:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SfWen-0004ca-Cm for qemu-devel@nongnu.org; Fri, 15 Jun 2012 09:33:45 -0400 From: Kevin Wolf Date: Fri, 15 Jun 2012 15:33:01 +0200 Message-Id: <1339767219-24297-2-git-send-email-kwolf@redhat.com> In-Reply-To: <1339767219-24297-1-git-send-email-kwolf@redhat.com> References: <1339767219-24297-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 01/39] qcow2: remove a line of unnecessary code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Zhi Yong Wu 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 --- 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 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 */ -- 1.7.6.5