From: Jianlin Lv Date: Thu, 18 Mar 2021 02:48:51 +0000 (+0800) Subject: bpf: Remove insn_buf[] declaration in inner block X-Git-Tag: v5.13-rc1~94^2~398^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ef05281e5d01dffdf75a4ae5c1aee7cbd7aaa73;p=thirdparty%2Fkernel%2Flinux.git bpf: Remove insn_buf[] declaration in inner block Two insn_buf[16] variables are declared in the function which acts on function scope and block scope respectively. The statement in the inner block is redundant, so remove it. Signed-off-by: Jianlin Lv Signed-off-by: Daniel Borkmann Link: https://lore.kernel.org/bpf/20210318024851.49693-1-Jianlin.Lv@arm.com --- diff --git a/kernel/bpf/verifier.c b/kernel/bpf/verifier.c index f9096b049cd6d..e26c5170c953d 100644 --- a/kernel/bpf/verifier.c +++ b/kernel/bpf/verifier.c @@ -11899,7 +11899,6 @@ static int do_misc_fixups(struct bpf_verifier_env *env) insn->code == (BPF_ALU64 | BPF_SUB | BPF_X)) { const u8 code_add = BPF_ALU64 | BPF_ADD | BPF_X; const u8 code_sub = BPF_ALU64 | BPF_SUB | BPF_X; - struct bpf_insn insn_buf[16]; struct bpf_insn *patch = &insn_buf[0]; bool issrc, isneg; u32 off_reg;