Skip to content

Commit 583e728

Browse files
Huazhong Tandavem330
authored andcommitted
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>
1 parent 27a5959 commit 583e728

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2019,7 +2019,8 @@ static void hns3_nic_reuse_page(struct sk_buff *skb, int i,
20192019
struct hns3_desc_cb *desc_cb)
20202020
{
20212021
struct hns3_desc *desc;
2022-
int truesize, size;
2022+
u32 truesize;
2023+
int size;
20232024
int last_offset;
20242025
bool twobufs;
20252026

0 commit comments

Comments
 (0)