From 708919bef7fa8e0ae611173fbe7d297c74acd3d4 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Tue, 13 May 2008 09:09:41 +0000 Subject: Minor coding style adjustment for DxeIpl. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5197 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | 14 +++++++------- MdeModulePkg/Core/DxeIplPeim/Ia32/ImageRead.c | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'MdeModulePkg/Core') diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c index db9e1de..d7575ca 100644 --- a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c +++ b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c @@ -67,7 +67,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. @retval EFI_OUT_OF_RESOURCES The system has insufficient resources to process the request. - @reteval EFI_INVALID_PARAMETER The GUID in InputSection does + @retval EFI_INVALID_PARAMETER The GUID in InputSection does not match this instance of the GUIDed Section Extraction PPI. @@ -118,7 +118,7 @@ BOOLEAN gInMemory = FALSE; // Module Globals used in the DXE to PEI handoff // These must be module globals, so the stack can be switched // -static EFI_DXE_IPL_PPI mDxeIplPpi = { +STATIC EFI_DXE_IPL_PPI mDxeIplPpi = { DxeLoadCore }; @@ -130,7 +130,7 @@ STATIC EFI_PEI_DECOMPRESS_PPI mDecompressPpi = { Decompress }; -static EFI_PEI_PPI_DESCRIPTOR mPpiList[] = { +STATIC EFI_PEI_PPI_DESCRIPTOR mPpiList[] = { { EFI_PEI_PPI_DESCRIPTOR_PPI, &gEfiDxeIplPpiGuid, @@ -143,7 +143,7 @@ static EFI_PEI_PPI_DESCRIPTOR mPpiList[] = { } }; -static EFI_PEI_PPI_DESCRIPTOR mPpiSignal = { +STATIC EFI_PEI_PPI_DESCRIPTOR mPpiSignal = { (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST), &gEfiEndOfPeiSignalPpiGuid, NULL @@ -247,7 +247,7 @@ DxeLoadCore ( EFI_PEI_FILE_HANDLE FileHandle; EFI_PEI_READ_ONLY_VARIABLE2_PPI *Variable; UINTN DataSize; - EFI_MEMORY_TYPE_INFORMATION MemoryData [EfiMaxMemoryType + 1]; + EFI_MEMORY_TYPE_INFORMATION MemoryData[EfiMaxMemoryType + 1]; // // if in S3 Resume, restore configure @@ -544,7 +544,7 @@ PeiLoadFile ( @retval EFI_OUT_OF_RESOURCES The system has insufficient resources to process the request. - @reteval EFI_INVALID_PARAMETER The GUID in InputSection does + @retval EFI_INVALID_PARAMETER The GUID in InputSection does not match this instance of the GUIDed Section Extraction PPI. @@ -594,7 +594,7 @@ CustomGuidedSectionExtract ( } } - if ((SectionAttribute & EFI_GUIDED_SECTION_PROCESSING_REQUIRED) && OutputBufferSize > 0) { + if (((SectionAttribute & EFI_GUIDED_SECTION_PROCESSING_REQUIRED) != 0) && OutputBufferSize > 0) { // // Allocate output buffer // diff --git a/MdeModulePkg/Core/DxeIplPeim/Ia32/ImageRead.c b/MdeModulePkg/Core/DxeIplPeim/Ia32/ImageRead.c index 1a5135c..3777609 100644 --- a/MdeModulePkg/Core/DxeIplPeim/Ia32/ImageRead.c +++ b/MdeModulePkg/Core/DxeIplPeim/Ia32/ImageRead.c @@ -55,7 +55,7 @@ PeiImageRead ( // ASSERT (ALIGN_POINTER (Source32, sizeof (UINT32)) == Source32); Length = *ReadSize; - while (Length--) { + while (Length-- != 0) { *(Destination32++) = *(Source32++); } -- cgit v1.1