aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorKui-Feng Lee <[email protected]>2024-05-23 10:41:54 -0700
committerAlexei Starovoitov <[email protected]>2024-06-03 20:52:42 -0700
commitc95a3be45ad22ee8925d6d1ab531d5ba98216311 (patch)
tree83dde6f4495c03d8ca07b3a73cbaf98a4c517dbd /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent49784c7979321c49a8055f5c588d24c34a8c55fc (diff)
bpf: Remove unnecessary checks on the offset of btf_field.
reg_find_field_offset() always return a btf_field with a matching offset value. Checking the offset of the returned btf_field is unnecessary. Acked-by: Eduard Zingerman <[email protected]> Signed-off-by: Kui-Feng Lee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions