diff options
| author | Kui-Feng Lee <thinker.li@gmail.com> | 2024-05-23 10:41:55 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2024-06-03 20:52:42 -0700 |
| commit | 482f7133791e894b94a57ab3251e03d4c98ea42b (patch) | |
| tree | dd090e2e84e49f85eeca59f47fb231427a559e8c /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | bpf: Remove unnecessary checks on the offset of btf_field. (diff) | |
| download | linux-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
