bpf: Remove the unnecessary insn buffer comparison
authorHaiyue Wang <haiyue.wang@intel.com>
Sun, 8 Jan 2023 15:12:57 +0000 (23:12 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 10 Jan 2023 22:09:29 +0000 (23:09 +0100)
commit66cf99b55e587aa4c20d5e572142dcbf80b2684d
treecb70c3ae4eb3ed13232d451e401bc1814f87ab00
parent6d0c4b11e743b84eb57898783e9adecb9083b269
bpf: Remove the unnecessary insn buffer comparison

The variable 'insn' is initialized to 'insn_buf' without being changed, only
some helper macros are defined, so the insn buffer comparison is unnecessary.
Just remove it. This missed removal back in 2377b81de527 ("bpf: split shared
bpf_tcp_sock and bpf_sock_ops implementation").

Signed-off-by: Haiyue Wang <haiyue.wang@intel.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Stanislav Fomichev <sdf@google.com>
Link: https://lore.kernel.org/bpf/20230108151258.96570-1-haiyue.wang@intel.com
net/core/filter.c