From: Huazhong Tan Date: Thu, 23 Aug 2018 03:37:16 +0000 (+0800) Subject: net: hns3: modify variable type in hns3_nic_reuse_page X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=583e7281f1d8234f3a3e483bd6fba7a72d24aa4e;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Salil Mehta Signed-off-by: David S. Miller --- 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;