diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2025-05-12 23:57:31 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2025-05-15 03:48:57 +0300 |
commit | 8e57cf09c84cac99eb31354a3cc70f8b8981bfc2 (patch) | |
tree | e521f17306c7cb77eba2977fee7dce7f654e2deb | |
parent | 94bde253d3ae5d8a01cb958663b12daef1d06574 (diff) | |
download | linux-8e57cf09c84cac99eb31354a3cc70f8b8981bfc2.tar.xz |
s390/bpf: Remove the orig_call NULL check
Now that orig_call can never be NULL, remove the respective check.
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Link: https://lore.kernel.org/r/20250512221911.61314-3-iii@linux.ibm.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
-rw-r--r-- | arch/s390/net/bpf_jit_comp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/s390/net/bpf_jit_comp.c b/arch/s390/net/bpf_jit_comp.c index 945106b5562d..6f22b5199c20 100644 --- a/arch/s390/net/bpf_jit_comp.c +++ b/arch/s390/net/bpf_jit_comp.c @@ -2583,9 +2583,8 @@ static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, if (nr_stack_args > MAX_NR_STACK_ARGS) return -ENOTSUPP; - /* Return to %r14, since func_addr and %r0 are not available. */ - if ((!func_addr && !(flags & BPF_TRAMP_F_ORIG_STACK)) || - (flags & BPF_TRAMP_F_INDIRECT)) + /* Return to %r14 in the struct_ops case. */ + if (flags & BPF_TRAMP_F_INDIRECT) flags |= BPF_TRAMP_F_SKIP_FRAME; /* |