aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2022-12-07 11:55:34 -0800
committerDaniel Borkmann <[email protected]>2022-12-07 22:58:41 +0100
commitdcb2288b1fd9a8cdf2f3b8c0c7b3763346ef515f (patch)
tree28ea7ba7bbc0febb78c45291636701a2117d5f57 /lib/mpi/mpi-sub-ui.c
parent0a6ea1ce8260f08079b0940350a21e4ad95c2378 (diff)
bpf: Remove unused insn_cnt argument from visit_[func_call_]insn()
Number of total instructions in BPF program (including subprogs) can and is accessed from env->prog->len. visit_func_call_insn() doesn't do any checks against insn_cnt anymore, relying on push_insn() to do this check internally. So remove unnecessary insn_cnt input argument from visit_func_call_insn() and visit_insn() functions. Suggested-by: Alexei Starovoitov <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions