Thread (15 messages) flat view 15 messages, 2 authors, 2019-06-07

Re: [PATCH net-next 01/12] net: hns3: log detail error info of ROCEE ECC and AXI errors

From: tanhuazhong <hidden>
Date: 2019-06-07 00:29:21
Also in: lkml


On 2019/6/7 1:36, David Miller wrote:
From: Huazhong Tan <redacted>
Date: Thu, 6 Jun 2019 16:20:56 +0800
quoted
+static int hclge_log_rocee_axi_error(struct hclge_dev *hdev)
+{
  ...
quoted
+	ret = hclge_cmd_send(&hdev->hw, &desc[0], 3);
+	if (ret) {
+		dev_err(dev, "failed(%d) to query ROCEE AXI error sts\n", ret);
+		return ret;
+	}
  ...
quoted
+		ret = hclge_log_rocee_axi_error(hdev);
+		if (ret) {
+			dev_err(dev, "failed(%d) to process axi error\n", ret);
You log the error twice which is unnecessary.
ok, thanks.
.
  
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help