From c18a1c88059bd546a198d95a10e9e17b11d062d1 Mon Sep 17 00:00:00 2001 From: Pavel Borzenkov Date: Tue, 18 Oct 2011 21:18:22 +0400 Subject: vmdk: remove unneeded variable assignment Spotted by Clang Analyzer Signed-off-by: Pavel Borzenkov Signed-off-by: Stefan Hajnoczi --- block/vmdk.c | 1 - 1 file changed, 1 deletion(-) (limited to 'block/vmdk.c') 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), -- cgit v1.2.3