]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fsfreeze: remove unnecessary condition [lgtm scan]
authorKarel Zak <kzak@redhat.com>
Fri, 20 Sep 2019 13:57:31 +0000 (15:57 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Sep 2019 13:57:31 +0000 (15:57 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fsfreeze.c

index 6035a1010db60257e0d288c8f15a8d1cc255226b..cd2bb4790f34d0cb53046f836309695ff6716dc8 100644 (file)
@@ -144,8 +144,7 @@ int main(int argc, char **argv)
 
        rc = EXIT_SUCCESS;
 done:
-       if (fd >= 0)
-               close(fd);
+       close(fd);
        return rc;
 }