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

Break out of the inner sbat loop if we find the entry. #476

Merged
merged 1 commit into from
May 17, 2022

Conversation

vathpela
Copy link
Contributor

Signed-off-by: Peter Jones pjones@redhat.com

sbat.c Outdated
@@ -171,11 +172,14 @@ verify_sbat_helper(list_t *local_sbat_var, size_t n, struct sbat_section_entry *
}

for (i = 0; i < n; i++) {
bool found = false;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Mmm this can go one block further inside?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

Signed-off-by: Peter Jones <pjones@redhat.com>
@vathpela vathpela marked this pull request as ready for review May 17, 2022 21:46
@vathpela vathpela merged commit 6402f1f into rhboot:main May 17, 2022
@vathpela vathpela deleted the minor-sbat-optimization branch May 17, 2022 22:16
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.

2 participants