]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Mem/Page.c
Code scrub for DxeCore
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Mem / Page.c
index 5da740cb7c4081b3e871d7639cda572fdd9c066a..2bf457267a99b8e338a7cb5491811f5596eeb15c 100644 (file)
@@ -46,8 +46,8 @@ UINTN         mFreeMapStack = 0;
 //\r
 // This list maintain the free memory map list\r
 //\r
-LIST_ENTRY   mFreeMemoryMapEntryList  = INITIALIZE_LIST_HEAD_VARIABLE (mFreeMemoryMapEntryList);\r
-BOOLEAN mMemoryTypeInformationInitialized = FALSE;\r
+LIST_ENTRY   mFreeMemoryMapEntryList = INITIALIZE_LIST_HEAD_VARIABLE (mFreeMemoryMapEntryList);\r
+BOOLEAN      mMemoryTypeInformationInitialized = FALSE;\r
 \r
 EFI_MEMORY_TYPE_STAISTICS mMemoryTypeStatistics[EfiMaxMemoryType + 1] = {\r
   { 0, EFI_MAX_ADDRESS, 0, 0, EfiMaxMemoryType, TRUE,  FALSE },  // EfiReservedMemoryType\r
@@ -110,8 +110,6 @@ PromoteMemoryResource (
                                  byte of a page \r
   @param  Attribute              The attributes of the memory range to add \r
 \r
-  @return None.  The range is added to the memory map\r
-\r
 **/\r
 VOID\r
 CoreAddRange (\r
@@ -613,7 +611,7 @@ CoreFreeMemoryMapStack (
 **/\r
 VOID\r
 RemoveMemoryMapEntry (\r
-  MEMORY_MAP      *Entry\r
+  IN OUT MEMORY_MAP      *Entry\r
   )\r
 {\r
   RemoveEntryList (&Entry->Link);\r
@@ -1151,9 +1149,6 @@ Done:
 }\r
 \r
 \r
-\r
-\r
-\r
 /**\r
   Frees previous allocated pages.\r
 \r
@@ -1235,8 +1230,6 @@ CoreFreePages (
 }\r
 \r
 \r
-\r
-\r
 /**\r
   This function returns a copy of the current memory map. The map is an array of\r
   memory descriptors, each of which describes a contiguous block of memory.\r
@@ -1373,7 +1366,7 @@ CoreGetMemoryMap (
         if (mMemoryTypeStatistics[Type].Special                        &&\r
             mMemoryTypeStatistics[Type].NumberOfPages > 0              &&\r
             Entry->Start >= mMemoryTypeStatistics[Type].BaseAddress    &&\r
-            Entry->End   <= mMemoryTypeStatistics[Type].MaximumAddress    ) {\r
+            Entry->End   <= mMemoryTypeStatistics[Type].MaximumAddress) {\r
           MemoryMap->Type = Type;\r
         }\r
       }\r
@@ -1467,7 +1460,7 @@ CoreAllocatePoolPages (
     CoreConvertPages (Start, NumberOfPages, PoolType);\r
   }\r
 \r
-  return (VOID *)(UINTN)Start;\r
+  return (VOID *)(UINTN) Start;\r
 }\r
 \r
 \r