From 63754e714aaf69f301cdf1371994096c6fd8abbf Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 24 Feb 2009 16:41:17 +0100 Subject: [PATCH] mount: remove useless if-before-free tests Signed-off-by: Karel Zak --- mount/lomount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.39.5