From 4fc051c73fbaaa652242cd95158c576860322e9b Mon Sep 17 00:00:00 2001 From: Shi Jin Date: Fri, 22 Mar 2024 22:36:08 +0000 Subject: [PATCH] prov/efa: remove unnecessary app_info check app_info is the same with the info passed by application in fi_domain, so it cannot be NULL. Signed-off-by: Shi Jin --- prov/efa/src/efa_shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prov/efa/src/efa_shm.c b/prov/efa/src/efa_shm.c index 18b5985da18..624c8cfd10e 100644 --- a/prov/efa/src/efa_shm.c +++ b/prov/efa/src/efa_shm.c @@ -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; }