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>
}\r
\r
// Machine type is LOONGARCH64, set a flag so LoongArch64 reset vector processed.\r
- if ((MachineType == EFI_IMAGE_MACHINE_LOONGARCH64)) {\r
+ if (MachineType == EFI_IMAGE_MACHINE_LOONGARCH64) {\r
VerboseMsg("Located LoongArch64 SEC core in child FV");\r
mLoongArch = TRUE;\r
}\r
mRiscV = TRUE;\r
}\r
\r
- if ( (ImageContext.Machine == EFI_IMAGE_MACHINE_LOONGARCH64) ) {\r
+ if (ImageContext.Machine == EFI_IMAGE_MACHINE_LOONGARCH64) {\r
mLoongArch = TRUE;\r
}\r
\r
mArm = TRUE;\r
}\r
\r
- if ( (ImageContext.Machine == EFI_IMAGE_MACHINE_LOONGARCH64) ) {\r
+ if (ImageContext.Machine == EFI_IMAGE_MACHINE_LOONGARCH64) {\r
mLoongArch = TRUE;\r
}\r
\r