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.
Unified · Split
| @@ -11899,7 +11899,6 @@ static int do_misc_fixups(struct bpf_verifier_env *env) · 11898 unmodified lines | |||
| 11899 | insn->code == (BPF_ALU64 | BPF_SUB | BPF_X)) { | 11899 | insn->code == (BPF_ALU64 | BPF_SUB | BPF_X)) { |
| 11900 | const u8 code_add = BPF_ALU64 | BPF_ADD | BPF_X; | 11900 | const u8 code_add = BPF_ALU64 | BPF_ADD | BPF_X; |
| 11901 | const u8 code_sub = BPF_ALU64 | BPF_SUB | BPF_X; | 11901 | const u8 code_sub = BPF_ALU64 | BPF_SUB | BPF_X; |
| 11902 | struct bpf_insn insn_buf[16]; | ||
| 11903 | struct bpf_insn *patch = &insn_buf[0]; | 11902 | struct bpf_insn *patch = &insn_buf[0]; |
| 11904 | bool issrc, isneg; | 11903 | bool issrc, isneg; |
| 11905 | u32 off_reg; | 11904 | u32 off_reg; |