summaryrefslogtreecommitdiffstats
path: root/BaseTools
diff options
context:
space:
mode:
authorChao Li <lichao@loongson.cn>2022-10-20 17:25:01 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-10-22 13:34:29 +0000
commit6fd754ec0fe96511cc48e3babe1a1b650fb3994f (patch)
treefb770c91090c17940197f4a63c1625a92567f982 /BaseTools
parent2355f0c09c52d6979f9f471b23816f3081cc946b (diff)
downloadedk2-6fd754ec0fe96511cc48e3babe1a1b650fb3994f.tar.gz
edk2-6fd754ec0fe96511cc48e3babe1a1b650fb3994f.tar.bz2
edk2-6fd754ec0fe96511cc48e3babe1a1b650fb3994f.zip
BaseTools: Fixed the multiple pairs brackets issue in GenFv
If operation Werro is turned on when compiling BaseTools, the multi-brackets warning will be reported. This issue is comes from on of the LoongArch enabled patche. Removed extra pairs brackets to fix it. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4111 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: Chao Li <lichao@loongson.cn> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools')
-rw-r--r--BaseTools/Source/C/GenFv/GenFvInternalLib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/BaseTools/Source/C/GenFv/GenFvInternalLib.c b/BaseTools/Source/C/GenFv/GenFvInternalLib.c
index 5c3d54f5f7..b5b9425003 100644
--- a/BaseTools/Source/C/GenFv/GenFvInternalLib.c
+++ b/BaseTools/Source/C/GenFv/GenFvInternalLib.c
@@ -3559,7 +3559,7 @@ Returns:
}
// Machine type is LOONGARCH64, set a flag so LoongArch64 reset vector processed.
- if ((MachineType == EFI_IMAGE_MACHINE_LOONGARCH64)) {
+ if (MachineType == EFI_IMAGE_MACHINE_LOONGARCH64) {
VerboseMsg("Located LoongArch64 SEC core in child FV");
mLoongArch = TRUE;
}
@@ -3721,7 +3721,7 @@ Returns:
mRiscV = TRUE;
}
- if ( (ImageContext.Machine == EFI_IMAGE_MACHINE_LOONGARCH64) ) {
+ if (ImageContext.Machine == EFI_IMAGE_MACHINE_LOONGARCH64) {
mLoongArch = TRUE;
}
@@ -4002,7 +4002,7 @@ Returns:
mArm = TRUE;
}
- if ( (ImageContext.Machine == EFI_IMAGE_MACHINE_LOONGARCH64) ) {
+ if (ImageContext.Machine == EFI_IMAGE_MACHINE_LOONGARCH64) {
mLoongArch = TRUE;
}