Skip to content

Commit de587d5

Browse files
tklauserborkmann
authored andcommitted
selftests/bpf: Remove unused variable in tc_tunnel prog
The variable buf is unused since commit 005edd1 ("selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC"). Remove it to fix the following warning: test_tc_tunnel.c:531:7: warning: unused variable 'buf' [-Wunused-variable] Fixes: 005edd1 ("selftests/bpf: convert bpf tunnel test to BPF_ADJ_ROOM_MAC") Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Willem de Bruijn <[email protected]> Acked-by: John Fastabend <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent 75f0fc7 commit de587d5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,6 @@ int __encap_ip6vxlan_eth(struct __sk_buff *skb)
528528

529529
static int decap_internal(struct __sk_buff *skb, int off, int len, char proto)
530530
{
531-
char buf[sizeof(struct v6hdr)];
532531
struct gre_hdr greh;
533532
struct udphdr udph;
534533
int olen = len;

0 commit comments

Comments
 (0)