selftests/bpf: test_progs: remove global fail/success counts
[muen/linux.git] / tools / testing / selftests / bpf / prog_tests / task_fd_query_rawtp.c
index 958a3d8..1bdc1d8 100644 (file)
@@ -70,9 +70,6 @@ void test_task_fd_query_rawtp(void)
        if (CHECK(!err, "check_results", "fd_type %d len %u\n", fd_type, len))
                goto close_prog;
 
-       goto close_prog_noerr;
 close_prog:
-       error_cnt++;
-close_prog_noerr:
        bpf_object__close(obj);
 }