bpf: clean up visit_insn()'s instruction processing
authorAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Mar 2023 23:50:04 +0000 (15:50 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 4 Mar 2023 19:14:32 +0000 (11:14 -0800)
commit653ae3a874aca6764a4c1f5a8bf1b072ade0d6f4
tree541b4b86f42a696f86f74ad6d3c1bc64c69a5763
parentfffc893b6bf29162aca76842238868b131fcb477
bpf: clean up visit_insn()'s instruction processing

Instead of referencing processed instruction repeatedly as insns[t]
throughout entire visit_insn() function, take a local insn pointer and
work with it in a cleaner way.

It makes enhancing this function further a bit easier as well.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20230302235015.2044271-7-andrii@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/verifier.c