Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prov/efa: Reduce # of error cases in happy path #9680

Merged

Conversation

a-szegel
Copy link
Contributor

This patch uses nested if cases to reduce the number of error checks in the fast happy path from 3 to 1 inside
efa_rdm_pke_handle_rtm_rta_recv(). It also cleans up some extra spacing in comments.

This patch uses nested if cases to reduce the number of error checks in
the fast happy path from 3 to 1 inside
efa_rdm_pke_handle_rtm_rta_recv().

Signed-off-by: Seth Zegelstein <szegel@amazon.com>
@a-szegel a-szegel requested a review from a team December 28, 2023 21:47
@a-szegel a-szegel merged commit a4bde3a into ofiwg:main Dec 29, 2023
10 of 12 checks passed
efa_rdm_pke_release_rx(pkt_entry);
return;
}
} else if (OFI_UNLIKELY(ret < 0)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no need to use else if, just if

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants