Simplify pointer info version check.

Change-Id: I0ed363f1261ffc041547f313970ca67298ace56c
This commit is contained in:
Sean Keely
2017-07-12 20:35:20 -05:00
والد c9642cf7af
کامیت dec5c52e07
@@ -687,8 +687,8 @@ hsa_status_t Runtime::PtrInfo(void* ptr, hsa_amd_pointer_info_t* info, void* (*a
hsa_amd_pointer_info_t retInfo;
// check output struct is at least as large as the first info revision.
if (info->size < 40) return HSA_STATUS_ERROR_INVALID_ARGUMENT;
// check output struct has an initialized size.
if (info->size == 0) return HSA_STATUS_ERROR_INVALID_ARGUMENT;
bool returnListData =
((alloc != nullptr) && (num_agents_accessible != nullptr) && (accessible != nullptr));