Skip to content

Commit

Permalink
UCP/MM: Fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
yosefe committed Jan 24, 2022
1 parent c9037eb commit 6254ddf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ucp/core/ucp_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,6 @@ ucs_status_t ucp_mem_rereg_mds(ucp_context_h context, ucp_md_map_t reg_md_map,
continue;
}

base_address = address;
reg_length = length;

if (context->config.ext.reg_whole_alloc_bitmap & UCS_BIT(mem_type)) {
ucp_memory_detect_internal(context, address, length, &mem_info);
base_address = mem_info.base_address;
Expand All @@ -137,6 +134,9 @@ ucs_status_t ucp_mem_rereg_mds(ucp_context_h context, ucp_md_map_t reg_md_map,
ucs_assertv(end_address >= UCS_PTR_BYTE_OFFSET(address, length),
"end_address=%p address+length=%p", end_address,
UCS_PTR_BYTE_OFFSET(address, length));
} else {
base_address = address;
reg_length = length;
}

/* MD supports registration, register new memh on it */
Expand Down

0 comments on commit 6254ddf

Please sign in to comment.