Remove an impossible check
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) <superm1@kernel.org>
This commit is contained in:
committed by
Galantsev, Dmitrii
orang tua
eacec681dd
melakukan
66eb189396
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user