Skip to content

Commit 3fcfbfe

Browse files
Zhu Junanakryiko
authored andcommitted
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 <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
1 parent b7b31f1 commit 3fcfbfe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

samples/bpf/tc_l2_redirect_kern.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,6 @@ int _l2_to_iptun_ingress_forward(struct __sk_buff *skb)
6363
void *data_end = (void *)(long)skb->data_end;
6464
int key = 0, *ifindex;
6565

66-
int ret;
67-
6866
if (data + sizeof(*eth) > data_end)
6967
return TC_ACT_OK;
7068

@@ -114,8 +112,6 @@ int _l2_to_iptun_ingress_redirect(struct __sk_buff *skb)
114112
void *data_end = (void *)(long)skb->data_end;
115113
int key = 0, *ifindex;
116114

117-
int ret;
118-
119115
if (data + sizeof(*eth) > data_end)
120116
return TC_ACT_OK;
121117

0 commit comments

Comments
 (0)