Skip to content

Commit

Permalink
UCP/CORE: Fix review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrygx committed Dec 5, 2021
1 parent 10ba2f5 commit bd42ac7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/ucp/core/ucp_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,13 @@ ucp_memory_detect_internal(ucp_context_h context, const void *address,
}

status = ucs_memtype_cache_lookup(address, length, mem_info);
if (ucs_unlikely((status == UCS_ERR_UNSUPPORTED) ||
((status == UCS_OK) &&
((mem_info->type == UCS_MEMORY_TYPE_UNKNOWN) ||
(mem_info->sys_dev == UCS_SYS_DEVICE_ID_UNKNOWN))))) {
ucp_memory_detect_slowpath(context, address, length, mem_info);
} else if (status == UCS_ERR_NO_ELEM) {
if (ucs_likely(status == UCS_ERR_NO_ELEM)) {
goto out_host_mem;
} else if ((status == UCS_ERR_UNSUPPORTED) ||
((status == UCS_OK) &&
((mem_info->type == UCS_MEMORY_TYPE_UNKNOWN) ||
(mem_info->sys_dev == UCS_SYS_DEVICE_ID_UNKNOWN)))) {
ucp_memory_detect_slowpath(context, address, length, mem_info);
} else {
ucs_assertv(status == UCS_OK, "%s (%d)", ucs_status_string(status),
status);
Expand Down

0 comments on commit bd42ac7

Please sign in to comment.