summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/hisilicon/hns3
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2018-08-23 06:37:16 +0300
committerDavid S. Miller <davem@davemloft.net>2018-08-23 07:55:01 +0300
commit583e7281f1d8234f3a3e483bd6fba7a72d24aa4e (patch)
tree48719ff49feb3f4c427d7e68b4b65cdd0ae7886c /drivers/net/ethernet/hisilicon/hns3
parent27a5959308559fa6afcaa4e6cd81d25bcb2dda7c (diff)
downloadlinux-583e7281f1d8234f3a3e483bd6fba7a72d24aa4e.tar.xz
net: hns3: modify variable type in hns3_nic_reuse_page
'truesize' is supposed to be u32, not int, so fix it. Signed-off-by: Huazhong tan <tanhuazhong@huawei.com> Signed-off-by: Salil Mehta <salil.mehta@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3_enet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
index 3554dca7a680..955c4ab18b03 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3_enet.c
@@ -2019,7 +2019,8 @@ static void hns3_nic_reuse_page(struct sk_buff *skb, int i,
struct hns3_desc_cb *desc_cb)
{
struct hns3_desc *desc;
- int truesize, size;
+ u32 truesize;
+ int size;
int last_offset;
bool twobufs;