提交 741384c7 编写于 作者: Y Yunsheng Lin 提交者: Xie XiuQi

net: hns3: remove redundant assignment of l2_hdr to itself

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

The pointer l2_hdr is being assigned to itself, this is redundant
and can be removed.

fix from community.

Feature or Bugfix:Bugfix
Signed-off-by: NYunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 b3c6132f
...@@ -862,7 +862,7 @@ static int hns3_set_l2l3l4(struct sk_buff *skb, u8 ol4_proto, ...@@ -862,7 +862,7 @@ static int hns3_set_l2l3l4(struct sk_buff *skb, u8 ol4_proto,
u8 il4_proto, u32 *type_cs_vlan_tso, u8 il4_proto, u32 *type_cs_vlan_tso,
u32 *ol_type_vlan_len_msec) u32 *ol_type_vlan_len_msec)
{ {
unsigned char *l2_hdr = l2_hdr = skb->data; unsigned char *l2_hdr = skb->data;
u32 l4_proto = ol4_proto; u32 l4_proto = ol4_proto;
union l4_hdr_info l4; union l4_hdr_info l4;
union l3_hdr_info l3; union l3_hdr_info l3;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册