selftest/bpf: Fix error usage of ASSERT_OK in xdp_adjust_tail.c
authorXu Kuohai <xukuohai@huawei.com>
Tue, 11 Oct 2022 12:01:08 +0000 (08:01 -0400)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 13 Oct 2022 17:53:30 +0000 (10:53 -0700)
commitcbc1c998da59687e8bbc4667154a72eead2daf2d
tree6d6022b951ecc35c07b491c489a84ac9c8a3f6a0
parent4abdb1d5b250df4b5b3afd394d5e2fa516064c04
selftest/bpf: Fix error usage of ASSERT_OK in xdp_adjust_tail.c

xdp_adjust_tail.c calls ASSERT_OK() to check the return value of
bpf_prog_test_load(), but the condition is not correct. Fix it.

Fixes: 791cad025051 ("bpf: selftests: Get rid of CHECK macro in xdp_adjust_tail.c")
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://lore.kernel.org/bpf/20221011120108.782373-7-xukuohai@huaweicloud.com
tools/testing/selftests/bpf/prog_tests/xdp_adjust_tail.c