[IPHLPAPI] getNumInterfacesInt(): Remove 'if()' redundant condition (#2884)

No impact.

Detected by Cppcheck: redundantCondition.
Addendum to 1fe3a2d6c3 (r9788).
This commit is contained in:
Serge Gautherie
2020-06-04 22:26:28 +02:00
committed by GitHub
parent 17c5fb8866
commit 450425028c

View File

@@ -246,8 +246,7 @@ static DWORD getNumInterfacesInt(BOOL onlyNonLoopback)
for( i = 0; i < numEntities; i++ ) {
if( isInterface( &entitySet[i] ) &&
(!onlyNonLoopback ||
(onlyNonLoopback && !isLoopback( tcpFile, &entitySet[i] ))) )
(!onlyNonLoopback || !isLoopback( tcpFile, &entitySet[i] )) )
numInterfaces++;
}