Skip to content

Commit cc9864a

Browse files
anakryikoborkmann
authored andcommitted
selftest/bpf: Fix compilation warning in sockmap_parse_prog.c
Remove unused len variable, which causes compilation warnings. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 86e85bf commit cc9864a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ int bpf_prog1(struct __sk_buff *skb)
1212
__u32 lport = skb->local_port;
1313
__u32 rport = skb->remote_port;
1414
__u8 *d = data;
15-
__u32 len = (__u32) data_end - (__u32) data;
1615
int err;
1716

1817
if (data + 10 > data_end) {

0 commit comments

Comments
 (0)