selftests/bpf: Fix bpf_link leak in ns_current_pid_tgid selftest
authorAndrii Nakryiko <andriin@fb.com>
Wed, 29 Apr 2020 01:21:10 +0000 (18:21 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Apr 2020 02:48:05 +0000 (19:48 -0700)
commit8d30e80a049ad699264e4a12911e349f93c7279a
treeabfc2b532c66164727d648e7f1092c90b56f6237
parent36d0b6159f6a6f51f600bf1777702f7036fb9839
selftests/bpf: Fix bpf_link leak in ns_current_pid_tgid selftest

If condition is inverted, but it's also just not necessary.

Fixes: 1c1052e0140a ("tools/testing/selftests/bpf: Add self-tests for new helper bpf_get_ns_current_pid_tgid.")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Cc: Carlos Neira <cneirabustos@gmail.com>
Link: https://lore.kernel.org/bpf/20200429012111.277390-11-andriin@fb.com
tools/testing/selftests/bpf/prog_tests/ns_current_pid_tgid.c