]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/GenFfs: Optimazing else if statement
authorwenyi,xie via groups.io <xiewenyi2=huawei.com@groups.io>
Tue, 15 Dec 2020 06:30:46 +0000 (14:30 +0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 22 Dec 2020 03:31:36 +0000 (03:31 +0000)
commitd77f9b1efff816522d10b34a68114f6ec34488dd
tree97d1cce5e4aabc2b10ec6d2ae3f6401fe1bd98a7
parentb6e360874f4da1eb2ad82dac00938d1286741884
BaseTools/GenFfs: Optimazing else if statement

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>
BaseTools/Source/C/GenFfs/GenFfs.c