1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

Skip check for NULL before dm_free

dm_free makes this test itself.
This commit is contained in:
Zdenek Kabelac 2011-04-21 13:15:26 +00:00
parent b680d5bf7b
commit 5c246f4876

View File

@ -857,11 +857,8 @@ static int _free_vginfo(struct lvmcache_vginfo *vginfo)
}
while ((vginfo2 = vginfo2->next));
if (vginfo->vgname)
dm_free(vginfo->vgname);
if (vginfo->creation_host)
dm_free(vginfo->creation_host);
dm_free(vginfo->vgname);
dm_free(vginfo->creation_host);
if (*vginfo->vgid && _vgid_hash &&
vginfo_from_vgid(vginfo->vgid) == vginfo)