BPF List
 help / color / mirror / Atom feed
* [PATCH] samples: bpf: Remove unused variable
@ 2024-11-11  6:15 Zhu Jun
  2024-11-13 20:30 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Zhu Jun @ 2024-11-11  6:15 UTC (permalink / raw)
  To: martin.lau
  Cc: eddyz87, song, yonghong.song, kpsingh, sdf, haoluo, jolsa, netdev,
	bpf, linux-kernel, zhujun2

The variable is never referenced in the code, just remove it.

Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
---
 samples/bpf/xdp2skb_meta_kern.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/samples/bpf/xdp2skb_meta_kern.c b/samples/bpf/xdp2skb_meta_kern.c
index d5631014a176..af29a1bde4e4 100644
--- a/samples/bpf/xdp2skb_meta_kern.c
+++ b/samples/bpf/xdp2skb_meta_kern.c
@@ -32,7 +32,7 @@ SEC("xdp_mark")
 int _xdp_mark(struct xdp_md *ctx)
 {
 	struct meta_info *meta;
-	void *data, *data_end;
+	void *data;
 	int ret;
 
 	/* Reserve space in-front of data pointer for our meta info.
-- 
2.17.1




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

* Re: [PATCH] samples: bpf: Remove unused variable
  2024-11-11  6:15 [PATCH] samples: bpf: Remove unused variable Zhu Jun
@ 2024-11-13 20:30 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-11-13 20:30 UTC (permalink / raw)
  To: Zhu Jun
  Cc: martin.lau, eddyz87, song, yonghong.song, kpsingh, sdf, haoluo,
	jolsa, netdev, bpf, linux-kernel

Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:

On Sun, 10 Nov 2024 22:15:14 -0800 you wrote:
> The variable is never referenced in the code, just remove it.
> 
> Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
> ---
>  samples/bpf/xdp2skb_meta_kern.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - samples: bpf: Remove unused variable
    https://git.kernel.org/bpf/bpf-next/c/b41ec3e6053a

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2024-11-13 20:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-11  6:15 [PATCH] samples: bpf: Remove unused variable Zhu Jun
2024-11-13 20:30 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox