diff --git a/projects/rocminfo/rocm_agent_enumerator b/projects/rocminfo/rocm_agent_enumerator index 8116304d8e..d527a110f2 100755 --- a/projects/rocminfo/rocm_agent_enumerator +++ b/projects/rocminfo/rocm_agent_enumerator @@ -117,7 +117,7 @@ def readFromTargetLstFile(): # locate target.lst using environment variable or # it should be placed at the same directory with this script target_lst_path = os.environ.get("ROCM_TARGET_LST"); - if target_lst_path == None: + if target_lst_path is None: target_lst_path = os.path.join(CWD, "target.lst") if os.path.isfile(target_lst_path): target_lst_file = open(target_lst_path, 'r')