Linux-kselftest Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] tools/testing: Remove unused variable
@ 2021-04-14 14:16 zuoqilin1
  2021-04-15  1:32 ` Martin KaFai Lau
  0 siblings, 1 reply; 2+ messages in thread
From: zuoqilin1 @ 2021-04-14 14:16 UTC (permalink / raw)
  To: shuah, andrii, kafai, john.fastabend, kpsingh
  Cc: linux-kselftest, netdev, linux-kernel, bpf, zuoqilin

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(-)

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;
 
-- 
1.9.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] tools/testing: Remove unused variable
  2021-04-14 14:16 [PATCH] tools/testing: Remove unused variable zuoqilin1
@ 2021-04-15  1:32 ` Martin KaFai Lau
  0 siblings, 0 replies; 2+ messages in thread
From: Martin KaFai Lau @ 2021-04-15  1:32 UTC (permalink / raw)
  To: zuoqilin1
  Cc: shuah, andrii, john.fastabend, kpsingh, linux-kselftest, netdev,
	linux-kernel, bpf, zuoqilin

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>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-14 14:16 [PATCH] tools/testing: Remove unused variable zuoqilin1
2021-04-15  1:32 ` Martin KaFai Lau

Linux-kselftest Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-kselftest/0 linux-kselftest/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-kselftest linux-kselftest/ https://lore.kernel.org/linux-kselftest \
		linux-kselftest@vger.kernel.org
	public-inbox-index linux-kselftest

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-kselftest


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git