From c28e333b43508b4037cba59a6ce8bb3912f63939 Mon Sep 17 00:00:00 2001
From: z00470624 <zhuweijia@huawei.com>
Date: Mon, 18 Mar 2024 17:36:40 +0800
Subject: [PATCH] hikptool: Delete meaningless printing

The revision IDs of different chips may be different.
Therefore, the print of revision ID mismatch is deleted.
It is normal that the revision IDs are different.

Signed-off-by: z00470624 <zhuweijia@huawei.com>
---
 libhikptdev/src/rciep/hikpt_rciep.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libhikptdev/src/rciep/hikpt_rciep.c b/libhikptdev/src/rciep/hikpt_rciep.c
index f673dd0..75ec224 100644
--- a/libhikptdev/src/rciep/hikpt_rciep.c
+++ b/libhikptdev/src/rciep/hikpt_rciep.c
@@ -366,8 +366,8 @@ static int hikp_iep_check(const char *tmp_vendor_dir,
 		return ret;
 
 	ret = hikp_iep_check_item(revision_dir, MAX_PCI_REVISION_LEN, HIKP_IEP_REVISION);
-	if (ret != 0)
-		printf("Revision id not match %s.\n", HIKP_IEP_REVISION);
+	if (ret != 0 && ret != -ENXIO)
+		return ret;
 
 	return 0;
 }
-- 
2.30.0

