s390/bpf: remove redundant check for non-null image
authorDaniel Borkmann <daniel@iogearbox.net>
Sat, 14 Jan 2017 00:48:24 +0000 (01:48 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Jan 2017 06:27:55 +0000 (07:27 +0100)
commit9437964885f84cd0c584e2d30ffbf7a5a84b77e4
tree97d2b311458b6f4adaad442e7ae2b8fe7e0ebbf4
parent21665912dd722656dfc4481f82c73397c8f2d07f
s390/bpf: remove redundant check for non-null image

After we already allocated the jit.prg_buf image via
bpf_jit_binary_alloc() and filled it out with instructions,
jit.prg_buf cannot be NULL anymore. Thus, remove the
unnecessary check. Tested on s390x with test_bpf module.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/net/bpf_jit_comp.c