[CSRSRV] CsrApiHandleConnectionRequest(): Remove ASSERT() redundant condition (#2858)

Detected by Cppcheck: redundantCondition.
Addendum to 835f3ef1.
This commit is contained in:
Serge Gautherie 2021-03-04 22:54:00 +01:00 committed by GitHub
parent abc84a742b
commit 63007901fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,