1
0
Fork 0

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>
hifive-unleashed-5.1
Huazhong Tan 2018-08-23 11:10:11 +08:00 committed by David S. Miller
parent 3ed614dce3
commit ac4a5b52f5
1 changed files with 2 additions and 1 deletions

View File

@ -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;