cgroup: remove racy check in test_memcg_sock()
[linux-2.6-microblaze.git] / tools / testing / selftests / cgroup / test_memcontrol.c
index 31d5c3f..6d3aace 100644 (file)
@@ -1102,9 +1102,6 @@ static int tcp_client(const char *cgroup, unsigned short port)
                if (current < 0 || sock < 0)
                        goto close_sk;
 
-               if (current < sock)
-                       goto close_sk;
-
                if (values_close(current, sock, 10)) {
                        ret = KSFT_PASS;
                        break;