diff options
author | Karel Zak | 2009-02-24 16:41:17 +0100 |
---|---|---|
committer | Karel Zak | 2009-02-24 16:41:17 +0100 |
commit | 63754e714aaf69f301cdf1371994096c6fd8abbf (patch) | |
tree | f90cec465f5d6210e7342e487b31cd561f352579 /mount/lomount.c | |
parent | getopt: remove useless if-before-free tests (diff) | |
download | kernel-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.c | 3 |
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; |