Skip to content

Commit

Permalink
prov/efa: Wrap condition in single OFI_UNLIKELY()
Browse files Browse the repository at this point in the history
Signed-off-by: Darryl Abbate <[email protected]>
  • Loading branch information
darrylabbate authored and j-xiong committed Mar 21, 2024
1 parent 6e8765f commit bd891fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prov/efa/src/rdm/efa_rdm_pke_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -427,9 +427,9 @@ ssize_t efa_rdm_pke_copy_payload_to_ope(struct efa_rdm_pke *pke,
*
* 3. message size is 0, thus no data to copy.
*/
if (OFI_UNLIKELY((ope->internal_flags & EFA_RDM_RXE_RECV_CANCEL)) ||
OFI_UNLIKELY(segment_offset >= ope->cq_entry.len) ||
OFI_UNLIKELY(pke->payload_size == 0)) {
if (OFI_UNLIKELY((ope->internal_flags & EFA_RDM_RXE_RECV_CANCEL) ||
(segment_offset >= ope->cq_entry.len) ||
(pke->payload_size == 0))) {
efa_rdm_pke_handle_data_copied(pke);
return 0;
}
Expand Down

0 comments on commit bd891fc

Please sign in to comment.