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

OvmfPkg/ResetVector: Move condition end outside of SearchBfv #6154

Closed
wants to merge 1 commit into from

Conversation

r1chard-lyu
Copy link

The %endif for %ifdef ARCH64 was originally inside SearchBvf, which makes the code harder to read and obscures the necessity of having it within SearchBvf. To improve code readability, move the condition end outside of SearchBvf.

The %endif for %ifdef ARCH64 was originally inside SearchBvf, which makes
the code harder to read and obscures the necessity of having it within
SearchBvf. To improve code readability, move the condition end outside
of SearchBvf.

Signed-off-by: Richard Lyu <[email protected]>
@ardbiesheuvel
Copy link
Member

Thanks for taking the time to submit this, but I don't think this is something that needs fixing as I don't think there is anything wrong with the code as-is.

@r1chard-lyu
Copy link
Author

r1chard-lyu commented Sep 2, 2024

Thank you, @ardbiesheuvel. Although it does not affect the execution of the program, I believe that the modified version makes it easier for someone to understand this section of the code. The %endif condition doesn't actually need to be written within SearchBvf. This approach will also make it easier for others to maintain the code in the future. However, if you believe that is not necessary, please feel free to disregard this PR.

@ardbiesheuvel
Copy link
Member

I'd argue that, given that the label is only references inside the %if block, it should be defined inside the %if block as well.

@r1chard-lyu
Copy link
Author

Thank you for your suggestion. I have no issues with this part now.

@r1chard-lyu r1chard-lyu closed this Sep 3, 2024
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