summaryrefslogtreecommitdiffstats
path: root/mount/lomount.c
diff options
context:
space:
mode:
authorKarel Zak2009-02-24 16:41:17 +0100
committerKarel Zak2009-02-24 16:41:17 +0100
commit63754e714aaf69f301cdf1371994096c6fd8abbf (patch)
treef90cec465f5d6210e7342e487b31cd561f352579 /mount/lomount.c
parentgetopt: remove useless if-before-free tests (diff)
downloadkernel-qcow2-util-linux-63754e714aaf69f301cdf1371994096c6fd8abbf.tar.gz
kernel-qcow2-util-linux-63754e714aaf69f301cdf1371994096c6fd8abbf.tar.xz
kernel-qcow2-util-linux-63754e714aaf69f301cdf1371994096c6fd8abbf.zip
mount: remove useless if-before-free tests
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/lomount.c')
-rw-r--r--mount/lomount.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/mount/lomount.c b/mount/lomount.c
index 93bcb466b..6b102925f 100644
--- a/mount/lomount.c
+++ b/mount/lomount.c
@@ -156,8 +156,7 @@ looplist_open(struct looplist *ll, int flag)
static void
looplist_close(struct looplist *ll)
{
- if (ll->minors)
- free(ll->minors);
+ free(ll->minors);
if (ll->proc)
fclose(ll->proc);
ll->minors = NULL;