Skip to content

Commit

Permalink
samples/bpf: Remove unused variable
Browse files Browse the repository at this point in the history
The variable is never referenced in the code, just remove it
that this problem was discovered by reading code

Signed-off-by: Zhu Jun <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
  • Loading branch information
Zhu Jun authored and Alexei Starovoitov committed Nov 25, 2024
1 parent 6398ef9 commit 27802ca
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion samples/bpf/xdp2skb_meta_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 27802ca

Please sign in to comment.