]> err.no Git - util-linux/commitdiff
mount: remove useless if-before-free tests
authorKarel Zak <kzak@redhat.com>
Tue, 24 Feb 2009 15:41:17 +0000 (16:41 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 24 Feb 2009 15:41:17 +0000 (16:41 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
mount/lomount.c

index 93bcb466b31652dae9a0f90f3c4dd274afa6a57f..6b102925f764f8e6cc47c0bbdeae1c730c336a0b 100644 (file)
@@ -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;