diff options
| author | Daniel Borkmann <daniel@iogearbox.net> | 2023-10-07 00:06:53 +0200 | 
|---|---|---|
| committer | Martin KaFai Lau <martin.lau@kernel.org> | 2023-10-06 17:11:21 -0700 | 
| commit | b77368269dda3f5d09c3ffa1b59021f6b74a2fa2 (patch) | |
| tree | 0613d4beed552a8cb6e890565716a862f44af143 /include/linux/fpga/fpga-bridge.h | |
| parent | f9b08790fa695f6304c2ad531bf9d249c63b5c33 (diff) | |
selftests/bpf: Adapt assert_mprog_count to always expect 0 count
Simplify __assert_mprog_count() to remove the -ENOENT corner case as the
bpf_prog_query() now returns 0 when no bpf_mprog is attached. This also
allows to convert a few test cases from using raw __assert_mprog_count()
over to plain assert_mprog_count() helper.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/r/20231006220655.1653-5-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions
