diff options
author | Zhu Jun <zhujun2@cmss.chinamobile.com> | 2024-11-11 07:15:14 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-11-13 21:21:48 +0100 |
commit | b41ec3e6053a1e408da8ce02be6cc8885aa41848 (patch) | |
tree | cbed800c138fc24614bec6d3fe178d586f98f987 /samples | |
parent | samples/bpf: Remove unused variables in tc_l2_redirect_kern.c (diff) | |
download | linux-b41ec3e6053a1e408da8ce02be6cc8885aa41848.tar.xz linux-b41ec3e6053a1e408da8ce02be6cc8885aa41848.zip |
samples/bpf: Remove unused variable in xdp2skb_meta_kern.c
The variable is never referenced in the code, just remove it.
Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241111061514.3257-1-zhujun2@cmss.chinamobile.com
Diffstat (limited to 'samples')
-rw-r--r-- | samples/bpf/xdp2skb_meta_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/samples/bpf/xdp2skb_meta_kern.c b/samples/bpf/xdp2skb_meta_kern.c index d5631014a176..af29a1bde4e4 100644 --- a/samples/bpf/xdp2skb_meta_kern.c +++ b/samples/bpf/xdp2skb_meta_kern.c @@ -32,7 +32,7 @@ SEC("xdp_mark") int _xdp_mark(struct xdp_md *ctx) { struct meta_info *meta; - void *data, *data_end; + void *data; int ret; /* Reserve space in-front of data pointer for our meta info. |