[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20241120032241.5657-1-zhujun2@cmss.chinamobile.com>
Date: Tue, 19 Nov 2024 19:22:41 -0800
From: Zhu Jun <zhujun2@...s.chinamobile.com>
To: martin.lau@...ux.dev
Cc: song@...nel.org,
eddyz87@...il.com,
yonghong.song@...ux.dev,
kpsingh@...nel.org,
sdf@...ichev.me,
haoluo@...gle.com,
jolsa@...nel.org,
netdev@...r.kernel.org,
bpf@...r.kernel.org,
linux-kernel@...r.kernel.org,
zhujun2@...s.chinamobile.com
Subject: [PATCH] samples/bpf: Remove unused variable
The variable is never referenced in the code, just remove it
that this problem was discovered by reading code
Signed-off-by: Zhu Jun <zhujun2@...s.chinamobile.com>
---
samples/bpf/xdp2skb_meta_kern.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/samples/bpf/xdp2skb_meta_kern.c b/samples/bpf/xdp2skb_meta_kern.c
index af29a1bde..3c36c25d9 100644
--- a/samples/bpf/xdp2skb_meta_kern.c
+++ b/samples/bpf/xdp2skb_meta_kern.c
@@ -63,7 +63,6 @@ SEC("tc_mark")
int _tc_mark(struct __sk_buff *ctx)
{
void *data = (void *)(unsigned long)ctx->data;
- void *data_end = (void *)(unsigned long)ctx->data_end;
void *data_meta = (void *)(unsigned long)ctx->data_meta;
struct meta_info *meta = data_meta;
--
2.17.1
Powered by blists - more mailing lists