]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
Update to fix minor coding style issues.
[mirror_edk2.git] / MdeModulePkg / Core / DxeIplPeim / DxeLoad.c
index db9e1dee91b220f098ee962beee7ab675e7d1142..914f4575fdc642753e18824465bb3c510f630165 100644 (file)
@@ -34,7 +34,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
                                 processed. OutputBuffer OutputBuffer is\r
                                 allocated from PEI permanent memory and contains\r
                                 the new section stream.\r
-  @param CompressionSection     A pointer to the input buffer, which contains\r
+  @param InputSection           A pointer to the input buffer, which contains\r
                                 the input section to be processed.\r
   @param OutputBuffer           A pointer to a caller-allocated buffer, whose\r
                                 size is specified by the contents of OutputSize.\r
@@ -67,7 +67,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
   @retval EFI_OUT_OF_RESOURCES  The system has insufficient\r
                                 resources to process the request.\r
   \r
-  @reteval EFI_INVALID_PARAMETER The GUID in InputSection does\r
+  @retval EFI_INVALID_PARAMETER The GUID in InputSection does\r
                                 not match this instance of the\r
                                 GUIDed Section Extraction PPI.\r
 \r
@@ -75,7 +75,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 EFI_STATUS\r
 CustomGuidedSectionExtract (\r
   IN CONST  EFI_PEI_GUIDED_SECTION_EXTRACTION_PPI *This,\r
-  IN CONST  VOID                                  *CompressionSection,\r
+  IN CONST  VOID                                  *InputSection,\r
   OUT       VOID                                  **OutputBuffer,\r
   OUT       UINTN                                 *OutputSize,\r
   OUT       UINT32                                *AuthenticationStatus\r
@@ -109,7 +109,7 @@ Decompress (
   IN CONST  EFI_COMPRESSION_SECTION *CompressionSection,\r
   OUT       VOID                    **OutputBuffer,\r
   OUT       UINTN                   *OutputSize\r
-);\r
+ );\r
 \r
 \r
 BOOLEAN gInMemory = FALSE;\r
@@ -118,7 +118,7 @@ BOOLEAN gInMemory = FALSE;
 // Module Globals used in the DXE to PEI handoff\r
 // These must be module globals, so the stack can be switched\r
 //\r
-static EFI_DXE_IPL_PPI mDxeIplPpi = {\r
+STATIC EFI_DXE_IPL_PPI mDxeIplPpi = {\r
   DxeLoadCore\r
 };\r
 \r
@@ -130,7 +130,7 @@ STATIC EFI_PEI_DECOMPRESS_PPI mDecompressPpi = {
   Decompress\r
 };\r
 \r
-static EFI_PEI_PPI_DESCRIPTOR     mPpiList[] = {\r
+STATIC EFI_PEI_PPI_DESCRIPTOR     mPpiList[] = {\r
   {\r
     EFI_PEI_PPI_DESCRIPTOR_PPI,\r
     &gEfiDxeIplPpiGuid,\r
@@ -143,7 +143,7 @@ static EFI_PEI_PPI_DESCRIPTOR     mPpiList[] = {
   }\r
 };\r
 \r
-static EFI_PEI_PPI_DESCRIPTOR     mPpiSignal = {\r
+STATIC EFI_PEI_PPI_DESCRIPTOR     mPpiSignal = {\r
   (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),\r
   &gEfiEndOfPeiSignalPpiGuid,\r
   NULL\r
@@ -247,7 +247,7 @@ DxeLoadCore (
   EFI_PEI_FILE_HANDLE                       FileHandle;\r
   EFI_PEI_READ_ONLY_VARIABLE2_PPI           *Variable;\r
   UINTN                                     DataSize;\r
-  EFI_MEMORY_TYPE_INFORMATION               MemoryData [EfiMaxMemoryType + 1];\r
+  EFI_MEMORY_TYPE_INFORMATION               MemoryData[EfiMaxMemoryType + 1];\r
 \r
   //\r
   // if in S3 Resume, restore configure\r
@@ -544,7 +544,7 @@ PeiLoadFile (
   @retval EFI_OUT_OF_RESOURCES  The system has insufficient\r
                                 resources to process the request.\r
   \r
-  @reteval EFI_INVALID_PARAMETER The GUID in InputSection does\r
+  @retval EFI_INVALID_PARAMETER The GUID in InputSection does\r
                                 not match this instance of the\r
                                 GUIDed Section Extraction PPI.\r
 \r
@@ -594,7 +594,7 @@ CustomGuidedSectionExtract (
     }\r
   }\r
 \r
-  if ((SectionAttribute & EFI_GUIDED_SECTION_PROCESSING_REQUIRED) && OutputBufferSize > 0) {  \r
+  if (((SectionAttribute & EFI_GUIDED_SECTION_PROCESSING_REQUIRED) != 0) && OutputBufferSize > 0) {  \r
     //\r
     // Allocate output buffer\r
     //\r