Skip to content

Commit

Permalink
prov/efa: remove unnecessary app_info check
Browse files Browse the repository at this point in the history
app_info is the same with the info passed
by application in fi_domain, so it
cannot be NULL.

Signed-off-by: Shi Jin <[email protected]>
  • Loading branch information
shijin-aws committed Mar 26, 2024
1 parent 3b5729e commit 60fbc16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prov/efa/src/efa_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void efa_shm_info_create(const struct fi_info *app_info, struct fi_info **shm_in
* make this request to shm as well.
*/
shm_hints->domain_attr->mr_mode = FI_MR_VIRT_ADDR;
if (app_info && (app_info->caps & FI_HMEM)) {
if (app_info->caps & FI_HMEM) {
shm_hints->domain_attr->mr_mode |= FI_MR_HMEM;
}

Expand Down

0 comments on commit 60fbc16

Please sign in to comment.