net: hns: modify variable type in hns_nic_reuse_page
authorHuazhong Tan <[email protected]>
Thu, 23 Aug 2018 03:10:11 +0000 (11:10 +0800)
committerDavid S. Miller <[email protected]>
Thu, 23 Aug 2018 04:47:36 +0000 (21:47 -0700)
'truesize' is supposed to be u32, not int, so fix it.

Signed-off-by: Huazhong tan <[email protected]>
Signed-off-by: Salil Mehta <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/hisilicon/hns/hns_enet.c

index 9f2b552aee33998680c2dc2c72e81c28f99209f5..c8c0b0309c27162c1ad6a548a7b872f5b4e0e346 100644 (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;