From: Karel Zak Date: Fri, 20 Sep 2019 13:57:31 +0000 (+0200) Subject: fsfreeze: remove unnecessary condition [lgtm scan] X-Git-Tag: v2.35-rc1~202 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8e76d28dbde02a378262cf9666155a757731051d;p=thirdparty%2Futil-linux.git fsfreeze: remove unnecessary condition [lgtm scan] Signed-off-by: Karel Zak --- diff --git a/sys-utils/fsfreeze.c b/sys-utils/fsfreeze.c index 6035a1010d..cd2bb4790f 100644 --- a/sys-utils/fsfreeze.c +++ b/sys-utils/fsfreeze.c @@ -144,8 +144,7 @@ int main(int argc, char **argv) rc = EXIT_SUCCESS; done: - if (fd >= 0) - close(fd); + close(fd); return rc; }