projects
/
project
/
unetd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
573ce96
)
mss-bpf: remove unused-but-set variable
author
Felix Fietkau
<nbd@nbd.name>
Tue, 2 Aug 2022 19:05:49 +0000
(21:05 +0200)
committer
Felix Fietkau
<nbd@nbd.name>
Wed, 3 Aug 2022 13:15:12 +0000
(15:15 +0200)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
mss-bpf.c
patch
|
blob
|
history
diff --git
a/mss-bpf.c
b/mss-bpf.c
index 26f13ae3cabd979f2c5b29e925f7719012aa3221..1aa893ee251ee1a75e3a2d053f0cf927afc5397d 100644
(file)
--- 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;