projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4af120
)
qcow2-refcount: remove dead assignment
author
Amit Shah
<amit.shah@redhat.com>
Wed, 13 Jan 2010 10:54:46 +0000
(16:24 +0530)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Wed, 13 Jan 2010 23:14:15 +0000
(17:14 -0600)
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>
block/qcow2-refcount.c
patch
|
blob
|
history
diff --git
a/block/qcow2-refcount.c
b/block/qcow2-refcount.c
index 54b19f86dd9f5d4e81c84aecdc7d9b5f96c6868d..3a2d44a170ca492aaccadb2af2ffa8cd249f5994 100644
(file)
--- 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));