diff mbox series

tools/testing: Remove unused variable

Message ID 20210414141639.1446-1-zuoqilin1@163.com (mailing list archive)
State New
Headers show
Series tools/testing: Remove unused variable | expand

Commit Message

zuoqilin1@163.com April 14, 2021, 2:16 p.m. UTC
From: zuoqilin <zuoqilin@yulong.com>

Remove unused variable "ret2".

Signed-off-by: zuoqilin <zuoqilin@yulong.com>
---
 tools/testing/selftests/bpf/progs/test_tunnel_kern.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Martin KaFai Lau April 15, 2021, 1:32 a.m. UTC | #1
On Wed, Apr 14, 2021 at 10:16:39PM +0800, zuoqilin1@163.com wrote:
> From: zuoqilin <zuoqilin@yulong.com>
> 
> Remove unused variable "ret2".
Please tag the targeting branch in the future as described in
Documentation/bpf/bpf_devel_QA.rst.

This one belongs to bpf-next.

Acked-by: Martin KaFai Lau <kafai@fb.com>
diff mbox series

Patch

diff --git a/tools/testing/selftests/bpf/progs/test_tunnel_kern.c b/tools/testing/selftests/bpf/progs/test_tunnel_kern.c
index ba6eadf..e7b6731 100644
--- a/tools/testing/selftests/bpf/progs/test_tunnel_kern.c
+++ b/tools/testing/selftests/bpf/progs/test_tunnel_kern.c
@@ -396,7 +396,7 @@  int _ip6vxlan_get_tunnel(struct __sk_buff *skb)
 SEC("geneve_set_tunnel")
 int _geneve_set_tunnel(struct __sk_buff *skb)
 {
-	int ret, ret2;
+	int ret;
 	struct bpf_tunnel_key key;
 	struct geneve_opt gopt;