Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Zhu Jun and committed by
Andrii Nakryiko
3fcfbfe3 b7b31f18

-4
-4
samples/bpf/tc_l2_redirect_kern.c
··· 63 63 void *data_end = (void *)(long)skb->data_end; 64 64 int key = 0, *ifindex; 65 65 66 - int ret; 67 - 68 66 if (data + sizeof(*eth) > data_end) 69 67 return TC_ACT_OK; 70 68 ··· 111 113 struct eth_hdr *eth = data; 112 114 void *data_end = (void *)(long)skb->data_end; 113 115 int key = 0, *ifindex; 114 - 115 - int ret; 116 116 117 117 if (data + sizeof(*eth) > data_end) 118 118 return TC_ACT_OK;