diff options
| author | Andrii Nakryiko <[email protected]> | 2022-12-07 11:55:34 -0800 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2022-12-07 22:58:41 +0100 |
| commit | dcb2288b1fd9a8cdf2f3b8c0c7b3763346ef515f (patch) | |
| tree | 28ea7ba7bbc0febb78c45291636701a2117d5f57 /scripts/clang-tools/gen_compile_commands.py | |
| parent | 0a6ea1ce8260f08079b0940350a21e4ad95c2378 (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 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions