From 63007901fd1f2505689449fb8a431be07c5e34f5 Mon Sep 17 00:00:00 2001 From: Serge Gautherie <32623169+SergeGautherie@users.noreply.github.com> Date: Thu, 4 Mar 2021 22:54:00 +0100 Subject: [PATCH] [CSRSRV] CsrApiHandleConnectionRequest(): Remove ASSERT() redundant condition (#2858) Detected by Cppcheck: redundantCondition. Addendum to 835f3ef1. --- subsystems/win32/csrsrv/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsystems/win32/csrsrv/api.c b/subsystems/win32/csrsrv/api.c index a0b3de17c55..6ff8694537a 100644 --- a/subsystems/win32/csrsrv/api.c +++ b/subsystems/win32/csrsrv/api.c @@ -189,7 +189,7 @@ CsrApiHandleConnectionRequest(IN PCSR_API_MESSAGE ApiMessage) ConnectInfo->ServerProcessId = NtCurrentTeb()->ClientId.UniqueProcess; /* Accept the Connection */ - ASSERT(!AllowConnection || (AllowConnection && CsrProcess)); + ASSERT(!AllowConnection || CsrProcess); Status = NtAcceptConnectPort(&ServerPort, AllowConnection ? UlongToPtr(CsrProcess->SequenceNumber) : 0, &ApiMessage->Header,