diff options
| author | Haowen Bai <[email protected]> | 2022-04-01 10:15:54 +0800 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-04-03 16:42:43 -0700 |
| commit | f6d60facd9b65614594f1feaa4eee18ac60a9a18 (patch) | |
| tree | fd05728f3d51c9e8685632e64f6b10f8f53adf0f /tools/perf/scripts/python/powerpc-hcalls.py | |
| parent | e299bcd4d16ff86f46c48df1062c8aae0eca1ed8 (diff) | |
selftests/bpf: Return true/false (not 1/0) from bool functions
Return boolean values ("true" or "false") instead of 1 or 0 from bool
functions. This fixes the following warnings from coccicheck:
./tools/testing/selftests/bpf/progs/test_xdp_noinline.c:567:9-10: WARNING:
return of 0/1 in function 'get_packet_dst' with return type bool
./tools/testing/selftests/bpf/progs/test_l4lb_noinline.c:221:9-10: WARNING:
return of 0/1 in function 'get_packet_dst' with return type bool
Signed-off-by: Haowen Bai <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Reviewed-by: Shuah Khan <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions