mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
test: selftests: Remove unused various in sockmap_verdict_prog.c
'lport' and 'rport' in bpf_prog1() of sockmap_verdict_prog.c is not used, just remove them. Signed-off-by: Menglong Dong <imagedong@tencent.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20220113031658.633290-1-imagedong@tencent.com
This commit is contained in:
parent
0e3a1c902f
commit
e80f2a0d19
1 changed files with 0 additions and 2 deletions
|
@ -7,8 +7,6 @@ int bpf_prog1(struct __sk_buff *skb)
|
|||
{
|
||||
void *data_end = (void *)(long) skb->data_end;
|
||||
void *data = (void *)(long) skb->data;
|
||||
__u32 lport = skb->local_port;
|
||||
__u32 rport = skb->remote_port;
|
||||
__u8 *d = data;
|
||||
int err;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue