Skip to content

Commit de4a223

Browse files
samples/bpf: Remove unused variable
JIRA: https://issues.redhat.com/browse/RHEL-78201 commit adf120e Author: Zhu Jun <zhujun2@cmss.chinamobile.com> Date: Tue Nov 19 19:22:41 2024 -0800 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> Signed-off-by: Jerome Marchand <jmarchan@redhat.com>
1 parent b7201b1 commit de4a223

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

samples/bpf/xdp2skb_meta_kern.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ SEC("tc_mark")
6363
int _tc_mark(struct __sk_buff *ctx)
6464
{
6565
void *data = (void *)(unsigned long)ctx->data;
66-
void *data_end = (void *)(unsigned long)ctx->data_end;
6766
void *data_meta = (void *)(unsigned long)ctx->data_meta;
6867
struct meta_info *meta = data_meta;
6968

0 commit comments

Comments
 (0)