ws2_32/tests: Remove dead code in test_completion_port (Coverity)

Frédéric Delanoy frederic.delanoy at gmail.com
Sun Jan 29 15:37:38 CST 2012


'dest' wasn't used and kept its INVALID_SOCKET value, so the check/cleanup is useless/unused.

CID 5540
---
 dlls/ws2_32/tests/sock.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/ws2_32/tests/sock.c b/dlls/ws2_32/tests/sock.c
index 9e111f8..2de23c9 100644
--- a/dlls/ws2_32/tests/sock.c
+++ b/dlls/ws2_32/tests/sock.c
@@ -5599,9 +5599,6 @@ static void test_completion_port(void)
     ok(num_bytes == 0xdeadbeef, "Number of bytes transferred is %u\n", num_bytes);
     ok(!olp, "Overlapped structure is at %p\n", olp);
 
-
-    if (dest != INVALID_SOCKET)
-        closesocket(dest);
     if (src != INVALID_SOCKET)
         closesocket(src);
     if (connector != INVALID_SOCKET)
-- 
1.7.8.3




More information about the wine-patches mailing list