Skip to content

Commit a26ac17

Browse files
chenhengqiKernel Patches Daemon
authored andcommitted
LoongArch: BPF: Remove duplicated flags check
The check for (BPF_TRAMP_F_ORIG_STACK | BPF_TRAMP_F_SHARE_IPMODIFY) is duplicated in __arch_prepare_bpf_trampoline(). Remove it. Acked-by: Tiezhu Yang <[email protected]> Tested-by: Vincent Li <[email protected]> Signed-off-by: Hengqi Chen <[email protected]>
1 parent 721f1da commit a26ac17

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

arch/loongarch/net/bpf_jit.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,9 +1462,6 @@ static int __arch_prepare_bpf_trampoline(struct jit_ctx *ctx, struct bpf_tramp_i
14621462
struct bpf_tramp_links *fmod_ret = &tlinks[BPF_TRAMP_MODIFY_RETURN];
14631463
u32 **branches = NULL;
14641464

1465-
if (flags & (BPF_TRAMP_F_ORIG_STACK | BPF_TRAMP_F_SHARE_IPMODIFY))
1466-
return -ENOTSUPP;
1467-
14681465
/*
14691466
* FP + 8 [ RA to parent func ] return address to parent
14701467
* function

0 commit comments

Comments
 (0)