projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fcfbfe
)
samples/bpf: Remove unused variable in xdp2skb_meta_kern.c
author
Zhu Jun
<zhujun2@cmss.chinamobile.com>
Mon, 11 Nov 2024 06:15:14 +0000
(22:15 -0800)
committer
Andrii Nakryiko
<andrii@kernel.org>
Wed, 13 Nov 2024 20:21:48 +0000
(12:21 -0800)
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
samples/bpf/xdp2skb_meta_kern.c
patch
|
blob
|
history
diff --git
a/samples/bpf/xdp2skb_meta_kern.c
b/samples/bpf/xdp2skb_meta_kern.c
index
d563101
..
af29a1b
100644
(file)
--- 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.