提交 41c28272 编写于 作者: H Huazhong Tan 提交者: Xie XiuQi

net: hns3: fixes type error for ras_status

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

ras_status is used to keep the register's valus, so its type should
be u32 instead of int.

Fixes: 41eeed900e4c ("net: hns3: add support for handling IMP error")
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Reviewed-by: Nlipeng <lipeng321@huawei.com>
Reviewed-by: NYunsheng Lin <linyunsheng@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 86bd2f31
...@@ -707,8 +707,8 @@ static int hclge_cmd_query_error(struct hclge_dev *hdev, ...@@ -707,8 +707,8 @@ static int hclge_cmd_query_error(struct hclge_dev *hdev,
static int hclge_check_imp_poison_err(struct hclge_dev *hdev) static int hclge_check_imp_poison_err(struct hclge_dev *hdev)
{ {
struct device *dev = &hdev->pdev->dev; struct device *dev = &hdev->pdev->dev;
int ras_status;
int ret = false; int ret = false;
u32 ras_status;
ras_status = hclge_read_dev(&hdev->hw, HCLGE_PF_OTHER_INT_REG); ras_status = hclge_read_dev(&hdev->hw, HCLGE_PF_OTHER_INT_REG);
if (ras_status & HCLGE_RAS_IMP_RD_POISON_MASK) { if (ras_status & HCLGE_RAS_IMP_RD_POISON_MASK) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册