diff options
author | Zhu Jun <zhujun2@cmss.chinamobile.com> | 2024-11-19 19:22:41 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-12-02 08:41:17 -0800 |
commit | adf120e1bedd9f27339cd773c6b474cc788f68f5 (patch) | |
tree | b25073f9cd05c05e20003295c42a54936b4396ea | |
parent | 9aef3aaa7059c4dd0cc875107e05bb3198a7fc33 (diff) |
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@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20241120032241.5657-1-zhujun2@cmss.chinamobile.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
-rw-r--r-- | samples/bpf/xdp2skb_meta_kern.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/samples/bpf/xdp2skb_meta_kern.c b/samples/bpf/xdp2skb_meta_kern.c index af29a1bde4e4..3c36c25d9902 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; |