selftest/bpf: fix compilation warning in sockmap_parse_prog.c
Subsystems (5)
PATCH v2 1/1 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]>
--- tools/testing/selftests/bpf/progs/sockmap_parse_prog.c | 1 - 1 file changed, 1 deletion(-)
tools/testing/selftests/bpf/progs/sockmap_parse_prog.c +0 -1
@@ -12,7 +12,6 @@ int bpf_prog1(struct __sk_buff *skb)__u32 lport = skb->local_port;__u32 rport = skb->remote_port;__u8 *d = data; -__u32 len = (__u32 ) data_end - (__u32 ) data;int err;if (data +10 > data_end) {
Signature · 1 line
2.17.1
Quoted 1 line · Andrii Nakryiko
Remove unused len variable, which causes compilation warnings.
Acked-by Martin KaFai Lau <[email protected]>
Quoted 3 lines · Andrii Nakryiko
Remove unused len variable, which causes compilation warnings.
Signed-off-by Andrii Nakryiko <[email protected]>
Applied, thanks!