]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
[Coverity] Remove superfluous condition in if statement
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 31 Jul 2020 20:36:34 +0000 (13:36 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 31 Jul 2020 20:36:34 +0000 (13:36 -0700)
open-vm-tools/services/plugins/serviceDiscovery/serviceDiscoveryPosix.c

index c3c2b83bdfe3e27e8a09044f31f694801fe15f17..1220948b01fc97380e16cc320ecfdd736f16f56d 100644 (file)
@@ -194,7 +194,7 @@ out:
          g_warning("%s: Failed to close child stdout file stream, errno=%d",
                    __FUNCTION__, errno);
       }
-   } else if (child_stdout != -1 && close(child_stdout) != 0) {
+   } else if (close(child_stdout) != 0) {
       g_warning("%s: Failed to close child stdout handle, errno=%d",
                 __FUNCTION__, errno);
    }