From: Chen Fan Date: Tue, 26 Aug 2014 06:11:16 +0000 (+0800) Subject: storage: remove unused 'canonPath' in virStorageFileGetMetadata X-Git-Tag: v1.2.8-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d59b2c920c1071af09409cc1c2a37d1a429b3e60;p=thirdparty%2Flibvirt.git storage: remove unused 'canonPath' in virStorageFileGetMetadata Introduced by commit 395171f. Signed-off-by: Chen Fan Signed-off-by: Ján Tomko --- diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c index 360461391a..5ddc23a7da 100644 --- a/src/storage/storage_driver.c +++ b/src/storage/storage_driver.c @@ -2892,7 +2892,6 @@ virStorageFileGetMetadata(virStorageSourcePtr src, src->path, src->format, (int)uid, (int)gid, allow_probe); virHashTablePtr cycle = NULL; - char *canonPath = NULL; int ret = -1; if (!(cycle = virHashCreate(5, NULL))) @@ -2904,7 +2903,6 @@ virStorageFileGetMetadata(virStorageSourcePtr src, ret = virStorageFileGetMetadataRecurse(src, uid, gid, allow_probe, cycle); - VIR_FREE(canonPath); virHashFree(cycle); return ret; }