[SWDEV-511011] version command fails when driver isn't loaded (#123)

Signed-off-by: Deepak Mewar <deepak.mewar@amd.com>

Change-Id: Ibe77c904-1a5c-4361-8fad-291a203c6755
This commit is contained in:
Mewar, Deepak
2025-02-26 14:43:22 +05:30
committed by GitHub
parent 71a8f35a7d
commit 83c88f26d1
2 changed files with 24 additions and 2 deletions
-2
View File
@@ -2952,8 +2952,6 @@ amdsmi_status_t amdsmi_get_gpu_topo_numa_affinity(
}
amdsmi_status_t amdsmi_get_lib_version(amdsmi_version_t *version) {
AMDSMI_CHECK_INIT();
if (version == nullptr)
return AMDSMI_STATUS_INVAL;