mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-24 10:17:45 +02:00
MdeModulePkg: Fixed code style.
This commit is contained in:
parent
aba1c68ac1
commit
be0b5fc5da
@ -115,7 +115,7 @@ GetMachineTypeName (
|
||||
{
|
||||
UINTN Index;
|
||||
|
||||
for (Index = 0; Index < sizeof (mMachineTypeInfo)/sizeof (mMachineTypeInfo[0]); Index++) {
|
||||
for (Index = 0; Index < sizeof (mMachineTypeInfo)/sizeof (mMachineTypeInfo[0]); ++Index) {
|
||||
if (mMachineTypeInfo[Index].MachineType == MachineType) {
|
||||
return mMachineTypeInfo[Index].MachineTypeName;
|
||||
}
|
||||
@ -415,7 +415,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
||||
//
|
||||
BaseOffsetPageNumber = EFI_SIZE_TO_PAGES ((UINT32)(ImageBase - DxeCodeBase));
|
||||
TopOffsetPageNumber = EFI_SIZE_TO_PAGES ((UINT32)(ImageBase + ImageSize - DxeCodeBase));
|
||||
for (Index = BaseOffsetPageNumber; Index < TopOffsetPageNumber; Index++) {
|
||||
for (Index = BaseOffsetPageNumber; Index < TopOffsetPageNumber; ++Index) {
|
||||
if ((mDxeCodeMemoryRangeUsageBitMap[Index / 64] & LShiftU64 (1, (Index % 64))) != 0) {
|
||||
//
|
||||
// This page is already used.
|
||||
@ -427,7 +427,7 @@ CheckAndMarkFixLoadingMemoryUsageBitMap (
|
||||
//
|
||||
// Being here means the memory range is available. So mark the bits for the memory range
|
||||
//
|
||||
for (Index = BaseOffsetPageNumber; Index < TopOffsetPageNumber; Index++) {
|
||||
for (Index = BaseOffsetPageNumber; Index < TopOffsetPageNumber; ++Index) {
|
||||
mDxeCodeMemoryRangeUsageBitMap[Index / 64] |= LShiftU64 (1, (Index % 64));
|
||||
}
|
||||
|
||||
@ -945,14 +945,14 @@ CoreUnloadAndCloseImage (
|
||||
&HandleBuffer
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
for (HandleIndex = 0; HandleIndex < HandleCount; HandleIndex++) {
|
||||
for (HandleIndex = 0; HandleIndex < HandleCount; ++HandleIndex) {
|
||||
Status = CoreProtocolsPerHandle (
|
||||
HandleBuffer[HandleIndex],
|
||||
&ProtocolGuidArray,
|
||||
&ArrayCount
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
for (ProtocolIndex = 0; ProtocolIndex < ArrayCount; ProtocolIndex++) {
|
||||
for (ProtocolIndex = 0; ProtocolIndex < ArrayCount; ++ProtocolIndex) {
|
||||
Status = CoreOpenProtocolInformation (
|
||||
HandleBuffer[HandleIndex],
|
||||
ProtocolGuidArray[ProtocolIndex],
|
||||
@ -960,7 +960,7 @@ CoreUnloadAndCloseImage (
|
||||
&OpenInfoCount
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
for (OpenInfoIndex = 0; OpenInfoIndex < OpenInfoCount; OpenInfoIndex++) {
|
||||
for (OpenInfoIndex = 0; OpenInfoIndex < OpenInfoCount; ++OpenInfoIndex) {
|
||||
if (OpenInfo[OpenInfoIndex].AgentHandle == Image->Handle) {
|
||||
Status = CoreCloseProtocol (
|
||||
HandleBuffer[HandleIndex],
|
||||
|
Loading…
x
Reference in New Issue
Block a user