build: slightly change files to pass compilation

Compiled using Clang and encountered errors on ambiguous pointer
type, implicit conversion NULL to bool, and unused function, etc.
As a fix, this patch slightly updates the related codes.

Change-Id: I4a73d66293313dda36749036f5c73aaf2a445231


[ROCm/rocprofiler commit: ee917344ff]
Bu işleme şunda yer alıyor:
Xianwei Zhang
2019-06-06 11:23:48 -05:00
ebeveyn 0762516023
işleme 3dce66bd80
7 değiştirilmiş dosya ile 6 ekleme ve 7 silme
+1 -1
Dosyayı Görüntüle
@@ -62,7 +62,7 @@ bool TestHsa::Initialize(int /*arg_cnt*/, char** /*arg_list*/) {
if (!hsa_rsrc_->GetGpuAgentInfo(agent_id, &agent_info_)) {
agent_info_ = NULL;
std::cerr << "> error: agent[" << agent_id << "] is not found" << std::endl;
return NULL;
return false;
}
}
std::clog << "> Using agent[" << agent_info_->dev_index << "] : " << agent_info_->name << std::endl;