From: Karel Zak Date: Tue, 24 Feb 2009 15:41:17 +0000 (+0100) Subject: mount: remove useless if-before-free tests X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63754e714aaf69f301cdf1371994096c6fd8abbf;p=util-linux mount: remove useless if-before-free tests Signed-off-by: Karel Zak --- diff --git a/mount/lomount.c b/mount/lomount.c index 93bcb466..6b102925 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;