提交 a3af6708 编写于 作者: L liweihang 提交者: Xie XiuQi

net: hns3: modify type of pull_len in struct hns3_enet_ring

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

pull_len gets value from eth_get_headlen(), which always returns u32. So
it's better to change its type from int to u32.

Feature or Bugfix: Bugfix
Signed-off-by: Nliweihang <liweihang@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 7cccd501
......@@ -417,7 +417,7 @@ struct hns3_enet_ring {
*/
int next_to_clean;
int pull_len;
u32 pull_len;
u32 frag_num;
unsigned char *va;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册