mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 03:21:44 +03:00
storage: remove unused 'canonPath' in virStorageFileGetMetadata
Introduced by commit 395171f
.
Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d071164272
commit
d59b2c920c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user