1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +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 91419c3e86
commit af112eb2c9

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)