Skip to content

Commit

Permalink
prov/opx: Only assert page size when hfi_ctrl is set.
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Lynam <[email protected]>
  • Loading branch information
belynam authored and j-xiong committed Jul 23, 2024
1 parent b626982 commit 399c779
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion prov/opx/src/fi_opx_hfi1.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,9 @@ static int opx_open_hfi_and_context(struct _hfi_ctrl **ctrl,
"Unable to open a context on HFI unit %d.\n",
hfi_unit_number);
fd = -1;
} else {
assert((*ctrl)->__hfi_pg_sz == OPX_HFI1_TID_PAGESIZE);
}
assert((*ctrl)->__hfi_pg_sz == OPX_HFI1_TID_PAGESIZE);
}
return fd;
}
Expand Down

0 comments on commit 399c779

Please sign in to comment.