aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/autoload.c
diff options
context:
space:
mode:
authorKui-Feng Lee <thinker.li@gmail.com>2024-05-23 10:41:55 -0700
committerAlexei Starovoitov <ast@kernel.org>2024-06-03 20:52:42 -0700
commit482f7133791e894b94a57ab3251e03d4c98ea42b (patch)
treedd090e2e84e49f85eeca59f47fb231427a559e8c /tools/testing/selftests/bpf/prog_tests/autoload.c
parentbpf: Remove unnecessary checks on the offset of btf_field. (diff)
downloadlinux-482f7133791e894b94a57ab3251e03d4c98ea42b.tar.gz
linux-482f7133791e894b94a57ab3251e03d4c98ea42b.zip
bpf: Remove unnecessary call to btf_field_type_size().
field->size has been initialized by bpf_parse_fields() with the value returned by btf_field_type_size(). Use it instead of calling btf_field_type_size() again. Acked-by: Eduard Zingerman <eddyz87@gmail.com> Signed-off-by: Kui-Feng Lee <thinker.li@gmail.com> Link: https://lore.kernel.org/r/20240523174202.461236-3-thinker.li@gmail.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions