diff options
author | Huazhong Tan <tanhuazhong@huawei.com> | 2018-08-23 06:10:11 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-08-23 07:47:36 +0300 |
commit | ac4a5b52f5970479f4b2d94a7f98dbf9eaf675ab (patch) | |
tree | e8bc25df9299e6144fa6785e5fdf2a3f5ceb436c /drivers | |
parent | 3ed614dce3ca9912d22be215ff0f11104b69fe62 (diff) | |
download | linux-ac4a5b52f5970479f4b2d94a7f98dbf9eaf675ab.tar.xz |
net: hns: modify variable type in hns_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')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns/hns_enet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_enet.c b/drivers/net/ethernet/hisilicon/hns/hns_enet.c index 9f2b552aee33..c8c0b0309c27 100644 --- a/drivers/net/ethernet/hisilicon/hns/hns_enet.c +++ b/drivers/net/ethernet/hisilicon/hns/hns_enet.c @@ -512,7 +512,8 @@ static void hns_nic_reuse_page(struct sk_buff *skb, int i, struct hnae_desc_cb *desc_cb) { struct hnae_desc *desc; - int truesize, size; + u32 truesize; + int size; int last_offset; bool twobufs; |