瀏覽代碼

net: hns3: Remove the warning when clear reset cause

Only the core/global/IMP reset need clear cause, other type does not
need do it. The warning may be treated as error as it is normal. This
patch removes the warning.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Peng Li 7 年之前
父節點
當前提交
a754e5c4ed
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

+ 0 - 2
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

@@ -2805,8 +2805,6 @@ static void hclge_clear_reset_cause(struct hclge_dev *hdev)
 		clearval = BIT(HCLGE_VECTOR0_CORERESET_INT_B);
 		break;
 	default:
-		dev_warn(&hdev->pdev->dev, "Unsupported reset event to clear:%d",
-			 hdev->reset_type);
 		break;
 	}