aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorViktor Malik <[email protected]>2023-03-01 09:53:53 +0100
committerAndrii Nakryiko <[email protected]>2023-03-01 11:13:10 -0800
commit40e1bcab1e4ce7d7e4d601782a963e8d59d09695 (patch)
tree70abd3bc35b3d5edd8e1eca229c09d349926a1eb /tools/testing/selftests/bpf/progs/test_autoload.c
parentbe35f4af719c94df137cd611bf497d658eb3adc2 (diff)
libbpf: Remove unnecessary ternary operator
Coverity reports that the first check of 'err' in bpf_object__init_maps is always false as 'err' is initialized to 0 at that point. Remove the unnecessary ternary operator. Signed-off-by: Viktor Malik <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/78a3702f2ea9f32a84faaae9b674c56269d330a7.1677658777.git.vmalik@redhat.com
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions