selftests/bpf: test_progs: remove global fail/success counts
[muen/linux.git] / tools / testing / selftests / bpf / prog_tests / task_fd_query_tp.c
index f9b70e8..3f131b8 100644 (file)
@@ -62,14 +62,9 @@ static void test_task_fd_query_tp_core(const char *probe_name,
                  fd_type, buf))
                goto close_pmu;
 
-       close(pmu_fd);
-       goto close_prog_noerr;
-
 close_pmu:
        close(pmu_fd);
 close_prog:
-       error_cnt++;
-close_prog_noerr:
        bpf_object__close(obj);
 }