summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhu Jun <zhujun2@cmss.chinamobile.com>2024-11-11 07:15:14 +0100
committerAndrii Nakryiko <andrii@kernel.org>2024-11-13 21:21:48 +0100
commitb41ec3e6053a1e408da8ce02be6cc8885aa41848 (patch)
treecbed800c138fc24614bec6d3fe178d586f98f987
parentsamples/bpf: Remove unused variables in tc_l2_redirect_kern.c (diff)
downloadlinux-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
-rw-r--r--samples/bpf/xdp2skb_meta_kern.c2
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.