summaryrefslogtreecommitdiff
path: root/lib/cache
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-02-27 14:14:25 +0100
committerZdenek Kabelac <zkabelac@redhat.com>2021-03-02 22:57:35 +0100
commiteb3dcc72eb0e1f3922dafcc4d018db70aabc3bc9 (patch)
treed3ca7c378d453dc488a9371367e2ef7bed930e71 /lib/cache
parent0b7a4503e51d29454bdb8852dfd2a39276f828af (diff)
downloadlvm2-eb3dcc72eb0e1f3922dafcc4d018db70aabc3bc9.tar.gz
cleanup: free already checks for NULL
Diffstat (limited to 'lib/cache')
-rw-r--r--lib/cache/lvmcache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/cache/lvmcache.c b/lib/cache/lvmcache.c
index 172c10f30..04f6fe0a5 100644
--- a/lib/cache/lvmcache.c
+++ b/lib/cache/lvmcache.c
@@ -1406,8 +1406,7 @@ static void _free_vginfo(struct lvmcache_vginfo *vginfo)
free(vginfo->vgname);
free(vginfo->system_id);
free(vginfo->creation_host);
- if (vginfo->lock_type)
- free(vginfo->lock_type);
+ free(vginfo->lock_type);
free(vginfo);
}