aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorPavel Borzenkov <pavel.borzenkov@gmail.com>2011-10-18 21:18:22 +0400
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-10-26 13:36:35 +0100
commitc18a1c88059bd546a198d95a10e9e17b11d062d1 (patch)
tree6a44b001615230f01ac1331c73542f9d5d390428 /block
parentbff39b6360eefc65b9f8f438cf03dab21afba5bf (diff)
vmdk: remove unneeded variable assignment
Spotted by Clang Analyzer Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'block')
-rw-r--r--block/vmdk.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/block/vmdk.c b/block/vmdk.c
index 5d16ec49bc..396913166a 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -1387,7 +1387,6 @@ static int vmdk_create(const char *filename, QEMUOptionParameter *options)
bdrv_delete(bs);
return -EINVAL;
}
- filesize = bdrv_getlength(bs);
parent_cid = vmdk_read_cid(bs, 0);
bdrv_delete(bs);
relative_path(parent_filename, sizeof(parent_filename),