From: Felix Fietkau Date: Tue, 2 Aug 2022 19:05:49 +0000 (+0200) Subject: mss-bpf: remove unused-but-set variable X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a23ad491ff485b88bb38c4178c6fc8590db150db;p=project%2Funetd.git mss-bpf: remove unused-but-set variable Signed-off-by: Felix Fietkau --- diff --git a/mss-bpf.c b/mss-bpf.c index 26f13ae..1aa893e 100644 --- a/mss-bpf.c +++ b/mss-bpf.c @@ -81,7 +81,6 @@ SEC("tc") int mssfix(struct __sk_buff *skb) { struct skb_parser_info info; - u32 offset_eth; __u16 mss; int type; @@ -92,7 +91,6 @@ int mssfix(struct __sk_buff *skb) skb_parse_vlan(&info); skb_parse_vlan(&info); - offset_eth = info.offset; if (!skb_parse_ipv4(&info, 60) && !skb_parse_ipv6(&info, 60)) return TC_ACT_UNSPEC;