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
@ -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…
Reference in New Issue
Block a user