Skip to content

Commit

Permalink
test: selftests: Remove unused various in sockmap_verdict_prog.c
Browse files Browse the repository at this point in the history
'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
  • Loading branch information
Menglong Dong authored and Andrii Nakryiko committed Jan 15, 2022
1 parent 0e3a1c9 commit e80f2a0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tools/testing/selftests/bpf/progs/sockmap_parse_prog.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit e80f2a0

Please sign in to comment.