summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2016-02-25 16:51:14 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2016-02-25 23:30:25 +0100
commit1a9f743eefbe8d86f6a23838789c21136f02cdcd (patch)
treed1ab9ef42135d829805b55ec4ab0966ca92fa621
parente9b523e3044b83fc1a919f8a07a85d169c7d4d55 (diff)
downloadlvm2-1a9f743eefbe8d86f6a23838789c21136f02cdcd.tar.gz
cleanup: drop unneeded test
dmfree tests for NULL
-rw-r--r--lib/cache/lvmcache.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c
index c28460ee5..b1e53e24d 100644
--- a/lib/cache/lvmcache.c
+++ b/lib/cache/lvmcache.c
@@ -1177,9 +1177,7 @@ static int _free_vginfo(struct lvmcache_vginfo *vginfo)
vginfo2 = vginfo2->next;
}
- if (vginfo->system_id)
- dm_free(vginfo->system_id);
-
+ dm_free(vginfo->system_id);
dm_free(vginfo->vgname);
dm_free(vginfo->creation_host);