diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-27 14:14:25 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-03-02 22:57:35 +0100 |
commit | eb3dcc72eb0e1f3922dafcc4d018db70aabc3bc9 (patch) | |
tree | d3ca7c378d453dc488a9371367e2ef7bed930e71 /lib/cache | |
parent | 0b7a4503e51d29454bdb8852dfd2a39276f828af (diff) | |
download | lvm2-eb3dcc72eb0e1f3922dafcc4d018db70aabc3bc9.tar.gz |
cleanup: free already checks for NULL
Diffstat (limited to 'lib/cache')
-rw-r--r-- | lib/cache/lvmcache.c | 3 |
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); } |