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

BaseTools/GenFfs: Optimazing else if statement #1250

Closed
wants to merge 1 commit into from

Conversation

BobCF
Copy link
Member

@BobCF BobCF commented Dec 21, 2020

When Alignment < 0x400 is false, the expression of Alignment >= 0x400 is
always true. So extract the expression from the else if statement.

Cc: Bob Feng bob.c.feng@intel.com
Cc: Liming Gao gaoliming@byosoft.com.cn
Cc: Yuwei Chen yuwei.chen@intel.com
Signed-off-by: Wenyi Xie xiewenyi2@huawei.com

Reviewed-by: Bob Feng bob.c.feng@intel.com

When Alignment < 0x400 is false, the expression of Alignment >= 0x400 is
always true. So extract the expression from the else if statement.

Cc: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Yuwei Chen <yuwei.chen@intel.com>
Signed-off-by: Wenyi Xie <xiewenyi2@huawei.com>

Reviewed-by: Bob Feng <bob.c.feng@intel.com>
@BobCF BobCF closed this Dec 21, 2020
@BobCF BobCF deleted the pr12211 branch April 25, 2022 14:57
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.

None yet

1 participant