UefiCpuPkg/PiSmmCpuDxeSmm: Fix extraneous parentheses

Without this change, when building OvmfPkg with -D SMM_REQUIRE using
the XCODE5 toolchain we get:

  error: equality comparison with extraneous parentheses

which stops the build.

Signed-off-by: Mike Beaton <mjsbeaton@gmail.com>
This commit is contained in:
Mike Beaton 2024-09-28 03:51:58 +01:00 committed by mergify[bot]
parent 8d74a37944
commit 11d4edc7c6
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ CreateExtendedProtectionRange (
&MemorySpaceMap &MemorySpaceMap
); );
for (Index = 0; Index < NumberOfSpaceDescriptors; Index++) { for (Index = 0; Index < NumberOfSpaceDescriptors; Index++) {
if ((MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeMemoryMappedIo)) { if (MemorySpaceMap[Index].GcdMemoryType == EfiGcdMemoryTypeMemoryMappedIo) {
if (ADDRESS_IS_ALIGNED (MemorySpaceMap[Index].BaseAddress, SIZE_4KB) && if (ADDRESS_IS_ALIGNED (MemorySpaceMap[Index].BaseAddress, SIZE_4KB) &&
(MemorySpaceMap[Index].Length % SIZE_4KB == 0)) (MemorySpaceMap[Index].Length % SIZE_4KB == 0))
{ {