Fix clang 9 logical-not-parentheses warnings
[gd/samba-autobuild/.git] / source4 / torture / gpo / apply.c
index de5836d1a5f22da828d5aea2ba96920094357509..c4a6499f4cc8cf7c126972b9368e69b80711a226 100644 (file)
@@ -61,7 +61,7 @@ static int exec_wait(struct torture_context *tctx, const char **gpo_update_cmd)
        if (!tevent_req_poll_ntstatus(req, tctx->ev, &status)) {
                return -1;
        }
-       if (!samba_runcmd_recv(req, &ret) == 0) {
+       if (samba_runcmd_recv(req, &ret) != 0) {
                return -1;
        }
        return ret;