powerpc/bpf: Remove redundant check for non-null image
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 13 Jan 2017 17:10:00 +0000 (22:40 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Jan 2017 02:34:24 +0000 (13:34 +1100)
commit052de33ca4f840bf35587eacdf78b3bf8d347bb8
tree1e16978608a91987f8bd5e04e44c136739e61393
parent14a3ae34bfd0bcb1cc12d55b06a8584c11fac6fc
powerpc/bpf: Remove redundant check for non-null image

We have a check earlier to ensure we don't proceed if image is NULL. As
such, the redundant check can be removed.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
[Added similar changes for classic BPF JIT]
Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/net/bpf_jit_comp.c
arch/powerpc/net/bpf_jit_comp64.c