]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, x86/arm64: remove useless checks on prog
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 May 2016 17:08:29 +0000 (19:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:49:32 +0000 (13:49 -0400)
commitfa6ec10a852351c844cea8d887feb9fc17383698
tree78a3fe950b254b80ab0414e473f4cda06ba271cd
parent72a8e7975327a64f36d95a5abca9c444b1039830
bpf, x86/arm64: remove useless checks on prog

There is never such a situation, where bpf_int_jit_compile() is
called with either prog as NULL or len as 0, so the tests are
unnecessary and confusing as people would just copy them. s390
doesn't have them, so no change is needed there.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm64/net/bpf_jit_comp.c
arch/x86/net/bpf_jit_comp.c