Skip to content

Commit e80f2a0

Browse files
menglongdonganakryiko
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Song Liu <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 0e3a1c9 commit e80f2a0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

tools/testing/selftests/bpf/progs/sockmap_parse_prog.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ int bpf_prog1(struct __sk_buff *skb)
77
{
88
void *data_end = (void *)(long) skb->data_end;
99
void *data = (void *)(long) skb->data;
10-
__u32 lport = skb->local_port;
11-
__u32 rport = skb->remote_port;
1210
__u8 *d = data;
1311
int err;
1412

0 commit comments

Comments
 (0)