提交 c468efe2 编写于 作者: T Tom Herbert 提交者: David S. Miller

net: Remove superfluous setting of key_basic

key_basic is set twice in __skb_flow_dissect which seems unnecessary.
Remove second one.
Acked-by: NJiri Pirko <jiri@resnulli.us>
Signed-off-by: NTom Herbert <tom@herbertland.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 730fc437
...@@ -343,12 +343,6 @@ bool __skb_flow_dissect(const struct sk_buff *skb, ...@@ -343,12 +343,6 @@ bool __skb_flow_dissect(const struct sk_buff *skb,
break; break;
} }
/* It is ensured by skb_flow_dissector_init() that basic key will
* be always present.
*/
key_basic = skb_flow_dissector_target(flow_dissector,
FLOW_DISSECTOR_KEY_BASIC,
target_container);
key_basic->n_proto = proto; key_basic->n_proto = proto;
key_basic->ip_proto = ip_proto; key_basic->ip_proto = ip_proto;
key_basic->thoff = (u16) nhoff; key_basic->thoff = (u16) nhoff;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册