Commit 1470b68f authored by Chengchang Tang's avatar Chengchang Tang Committed by shiyongbang
Browse files

RDMA/hns: Fix print after query hw id failed.

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8C2IP



--------------------------------------------------------------------------

This patch avoid print log about the failure of querying HW ID which
is expected in some platform.

Signed-off-by: default avatarChengchang Tang <tangchengchang@huawei.com>
parent 867e1e95
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -1436,6 +1436,8 @@ static int __hns_roce_cmq_send(struct hns_roce_dev *hr_dev,
			if (likely(desc_ret == CMD_EXEC_SUCCESS))
				continue;

			if (desc->opcode != HNS_ROCE_OPC_QUERY_HW_ID &&
			    desc_ret != CMD_NOT_EXIST)
				dev_err_ratelimited(hr_dev->dev,
					"Cmdq IO error, opcode = 0x%x, return = 0x%x.\n",
					desc->opcode, desc_ret);