Skip to content

Commit 8e57cf0

Browse files
iii-iAlexei Starovoitov
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 94bde25 commit 8e57cf0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arch/s390/net/bpf_jit_comp.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2583,9 +2583,8 @@ static int __arch_prepare_bpf_trampoline(struct bpf_tramp_image *im,
25832583
if (nr_stack_args > MAX_NR_STACK_ARGS)
25842584
return -ENOTSUPP;
25852585

2586-
/* Return to %r14, since func_addr and %r0 are not available. */
2587-
if ((!func_addr && !(flags & BPF_TRAMP_F_ORIG_STACK)) ||
2588-
(flags & BPF_TRAMP_F_INDIRECT))
2586+
/* Return to %r14 in the struct_ops case. */
2587+
if (flags & BPF_TRAMP_F_INDIRECT)
25892588
flags |= BPF_TRAMP_F_SKIP_FRAME;
25902589

25912590
/*

0 commit comments

Comments
 (0)