[libvirt] [PATCH] storage: remove unused 'canonPath' in virStorageFileGetMetadata

2014-08-26 Thread Chen Fan
Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
---
 src/storage/storage_driver.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/storage/storage_driver.c b/src/storage/storage_driver.c
index 3604613..5ddc23a 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;
 }
-- 
1.9.3

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [libvirt] [PATCH] storage: remove unused 'canonPath' in virStorageFileGetMetadata

2014-08-26 Thread Ján Tomko
On 08/26/2014 08:11 AM, Chen Fan wrote:
 Signed-off-by: Chen Fan chen.fan.f...@cn.fujitsu.com
 ---
  src/storage/storage_driver.c | 2 --
  1 file changed, 2 deletions(-)
 

Introduced by commit 395171f.

I have added the comment to the commit message and pushed the patch.

Jan



signature.asc
Description: OpenPGP digital signature
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list