net: hns3: fix some mixed type assignment
authorGuojia Liao <liaoguojia@huawei.com>
Sat, 7 Mar 2020 03:42:42 +0000 (11:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 10 Mar 2020 02:36:12 +0000 (19:36 -0700)
commit72fa490480ce5cd6a1b8ec741b369a470f93d61d
tree8d27f76e011f94cb23f9a82fadc46b569f011ed5
parent09dee69ea6a5e2bce7721a5ed9e0398738de4304
net: hns3: fix some mixed type assignment

This patch cleans up some incorrect type in assignment reported by sparse
and compiler.
The warning as below:
- warning : restricted __le16 degrades to integer
- warning : cast from restricted __le32
- warning : cast from restricted __be32
- warning : cast from restricted __be16
and "mixed operation".

Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c