]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - arch/s390/net/bpf_jit_comp.c
s390/bpf: remove redundant check for non-null image
[karo-tx-linux.git] / arch / s390 / net / bpf_jit_comp.c
index 167b31b186c1313c2cea094ee3b972233d61a608..b3b0af86b84ee9909f7fc0ef2c714a92e7e1a141 100644 (file)
@@ -1331,14 +1331,11 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
        }
        if (bpf_jit_enable > 1) {
                bpf_jit_dump(fp->len, jit.size, pass, jit.prg_buf);
-               if (jit.prg_buf)
-                       print_fn_code(jit.prg_buf, jit.size_prg);
-       }
-       if (jit.prg_buf) {
-               set_memory_ro((unsigned long)header, header->pages);
-               fp->bpf_func = (void *) jit.prg_buf;
-               fp->jited = 1;
+               print_fn_code(jit.prg_buf, jit.size_prg);
        }
+       set_memory_ro((unsigned long)header, header->pages);
+       fp->bpf_func = (void *) jit.prg_buf;
+       fp->jited = 1;
 free_addrs:
        kfree(jit.addrs);
 out: