From 66eb189396b979dbee8733baf96e2a0f6d02e596 Mon Sep 17 00:00:00 2001 From: "Mario Limonciello (AMD)" Date: Wed, 20 Aug 2025 11:33:03 -0500 Subject: [PATCH] Remove an impossible check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit amdsmi/tests/amd_smi_test/functional/memorypartition_read_write.cc:453:32: warning: the address of ‘orig_memory_partition’ will never be NULL [-Waddress] 453 | if ((orig_memory_partition == nullptr) || | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ Signed-off-by: Mario Limonciello (AMD) --- tests/amd_smi_test/functional/memorypartition_read_write.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/amd_smi_test/functional/memorypartition_read_write.cc b/tests/amd_smi_test/functional/memorypartition_read_write.cc index 353304ebe6..0d44c2199a 100755 --- a/tests/amd_smi_test/functional/memorypartition_read_write.cc +++ b/tests/amd_smi_test/functional/memorypartition_read_write.cc @@ -458,8 +458,7 @@ void TestMemoryPartitionReadWrite::Run(void) { << orig_memory_partition << std::endl; } - if ((orig_memory_partition == nullptr) || - (orig_memory_partition[0] == '\0')) { + if (orig_memory_partition[0] == '\0') { std::cout << "***System memory partition value is not defined or received" " unexpected data. Skip memory partition test." << std::endl; continue;