diff options
author | Zhu Jun <zhujun2@cmss.chinamobile.com> | 2024-11-10 22:23:12 -0800 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2024-11-13 12:21:04 -0800 |
commit | 3fcfbfe307ddc0bc02053ef17ecf29a3b3f9463e (patch) | |
tree | 26d1922f5ffa7f3842bb49ca66dda15d1accab42 /samples/bpf | |
parent | b7b31f184f88c0cbd5d53dfc9a6532d851311135 (diff) | |
download | lwn-3fcfbfe307ddc0bc02053ef17ecf29a3b3f9463e.tar.gz lwn-3fcfbfe307ddc0bc02053ef17ecf29a3b3f9463e.zip |
samples/bpf: Remove unused variables in tc_l2_redirect_kern.c
These variables are never referenced in the code, just remove them.
Signed-off-by: Zhu Jun <zhujun2@cmss.chinamobile.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20241111062312.3541-1-zhujun2@cmss.chinamobile.com
Diffstat (limited to 'samples/bpf')
-rw-r--r-- | samples/bpf/tc_l2_redirect_kern.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/samples/bpf/tc_l2_redirect_kern.c b/samples/bpf/tc_l2_redirect_kern.c index 0b48f7ddf521..b19fa9b88fe0 100644 --- a/samples/bpf/tc_l2_redirect_kern.c +++ b/samples/bpf/tc_l2_redirect_kern.c @@ -63,8 +63,6 @@ int _l2_to_iptun_ingress_forward(struct __sk_buff *skb) void *data_end = (void *)(long)skb->data_end; int key = 0, *ifindex; - int ret; - if (data + sizeof(*eth) > data_end) return TC_ACT_OK; @@ -114,8 +112,6 @@ int _l2_to_iptun_ingress_redirect(struct __sk_buff *skb) void *data_end = (void *)(long)skb->data_end; int key = 0, *ifindex; - int ret; - if (data + sizeof(*eth) > data_end) return TC_ACT_OK; |