aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2010-01-13 16:24:46 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-13 17:14:15 -0600
commitf7dcfac024246e2ad84ac35c617b95700377e00b (patch)
treeeeb8ec474abfcc5e93ac163f26eab54c34f482bf
parentc4af120f5f180f79f671f6703a3b71209d89c010 (diff)
qcow2-refcount: remove dead assignment
clang-analyzer points out a redundant assignment. Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--block/qcow2-refcount.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/qcow2-refcount.c b/block/qcow2-refcount.c
index 54b19f86dd..3a2d44a170 100644
--- a/block/qcow2-refcount.c
+++ b/block/qcow2-refcount.c
@@ -511,7 +511,6 @@ int qcow2_update_snapshot_refcount(BlockDriverState *bs,
l2_table = NULL;
l1_table = NULL;
l1_size2 = l1_size * sizeof(uint64_t);
- l1_allocated = 0;
if (l1_table_offset != s->l1_table_offset) {
if (l1_size2 != 0) {
l1_table = qemu_mallocz(align_offset(l1_size2, 512));