Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zhu Jun and committed by
Alexei Starovoitov
adf120e1 9aef3aaa

-1
-1
samples/bpf/xdp2skb_meta_kern.c
··· 63 63 int _tc_mark(struct __sk_buff *ctx) 64 64 { 65 65 void *data = (void *)(unsigned long)ctx->data; 66 - void *data_end = (void *)(unsigned long)ctx->data_end; 67 66 void *data_meta = (void *)(unsigned long)ctx->data_meta; 68 67 struct meta_info *meta = data_meta; 69 68