]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/BdsDxe/BootMaint/BBSsupport.c
Clean up BootMaint module in BdsDxe.
[mirror_edk2.git] / MdeModulePkg / Universal / BdsDxe / BootMaint / BBSsupport.c
index b49c93c6adc415222eb0c99bd74f10fae0460586..11ae2b115cdc115d3e21dbd409e1acf88381b18a 100644 (file)
@@ -16,13 +16,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 #include "BBSsupport.h"\r
 \r
-EFI_DEVICE_PATH_PROTOCOL  EndDevicePath[] = {\r
-  END_DEVICE_PATH_TYPE,\r
-  END_ENTIRE_DEVICE_PATH_SUBTYPE,\r
-  END_DEVICE_PATH_LENGTH,\r
-  0\r
-};\r
-\r
 /**\r
 \r
   Translate the first n characters of an Ascii string to\r
@@ -291,7 +284,7 @@ BdsCreateLegacyBootOption (
   //\r
   UnicodeToAscii (BootDesc, StrSize (BootDesc), HelpString);\r
   StringLen = AsciiStrLen (HelpString);\r
-  NewBbsDevPathNode = EfiAllocateZeroPool (sizeof (BBS_BBS_DEVICE_PATH) + StringLen);\r
+  NewBbsDevPathNode = AllocateZeroPool (sizeof (BBS_BBS_DEVICE_PATH) + StringLen);\r
   if (NewBbsDevPathNode == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
@@ -320,7 +313,7 @@ BdsCreateLegacyBootOption (
     sizeof (BBS_TABLE) +\r
     sizeof (UINT16);\r
 \r
-  Buffer = EfiAllocateZeroPool (BufferSize);\r
+  Buffer = AllocateZeroPool (BufferSize);\r
   if (Buffer == NULL) {\r
     FreePool (NewBbsDevPathNode);\r
     FreePool (CurrentBbsDevPath);\r
@@ -369,7 +362,7 @@ BdsCreateLegacyBootOption (
   SafeFreePool (Buffer);\r
   Buffer = NULL;\r
 \r
-  NewBootOrderList = EfiAllocateZeroPool (*BootOrderListSize + sizeof (UINT16));\r
+  NewBootOrderList = AllocateZeroPool (*BootOrderListSize + sizeof (UINT16));\r
   if (NULL == NewBootOrderList) {\r
     FreePool (NewBbsDevPathNode);\r
     FreePool (CurrentBbsDevPath);\r
@@ -963,7 +956,7 @@ BdsCreateDevOrder (
   TotalSize += (HeaderSize + sizeof (UINT16) * NETCount);\r
   TotalSize += (HeaderSize + sizeof (UINT16) * BEVCount);\r
 \r
-  DevOrder = EfiAllocateZeroPool (TotalSize);\r
+  DevOrder = AllocateZeroPool (TotalSize);\r
   if (NULL == DevOrder) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
@@ -1151,7 +1144,7 @@ BdsUpdateLegacyDevOrder (
   TotalSize += (HeaderSize + NETCount * sizeof (UINT16));\r
   TotalSize += (HeaderSize + BEVCount * sizeof (UINT16));\r
 \r
-  NewDevOrder = EfiAllocateZeroPool (TotalSize);\r
+  NewDevOrder = AllocateZeroPool (TotalSize);\r
   if (NULL == NewDevOrder) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r