Skip to content

Commit

Permalink
UefiCpuPkg/PiSmmCpuDxeSmm: Fix extraneous parentheses
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mikebeaton committed Sep 29, 2024
1 parent 1078318 commit 6a764e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UefiCpuPkg/PiSmmCpuDxeSmm/NonMmramMapDxeSmm.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ CreateExtendedProtectionRange (
&MemorySpaceMap
);
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) &&
(MemorySpaceMap[Index].Length % SIZE_4KB == 0))
{
Expand Down

0 comments on commit 6a764e6

Please sign in to comment.