]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/FirmwareVolume/GuidedSectionExtraction/Crc32SectionExtract/Dxe/GuidedSection.c
Clean up the following module msa files, they are edkmodule package ftwlit, Crc32Sect...
[mirror_edk2.git] / EdkModulePkg / Universal / FirmwareVolume / GuidedSectionExtraction / Crc32SectionExtract / Dxe / GuidedSection.c
index f6af017f779643b0504aa0116aff8ca32905f074..87605cc05528fca2332efe950ebffeaaab69255a 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
+Copyright (c) 2006 - 2007, Intel Corporation                                                         \r
 All rights reserved. This program and the accompanying materials                          \r
 are licensed and made available under the terms and conditions of the BSD License         \r
 which accompanies this distribution.  The full text of the license may be found at        \r
@@ -20,17 +20,9 @@ Abstract:
   extraction protocol. GUID specific implementation of each\r
   GUIDed section extraction protocol can be found in other\r
   files under the same directory.\r
-  \r
-  Please refer to the Tiano File Image Format Specification, \r
-  FV spec 0.3.6\r
-  \r
-  Acronyms used       Meaning\r
-\r
     \r
 --*/\r
 \r
-\r
-#include "Common/FirmwareFileSystem.h"\r
 #include "GuidedSection.h"\r
 \r
 EFI_STATUS\r
@@ -58,15 +50,8 @@ Returns:
 // TODO:    ExtractSection - add argument and description to function comment\r
 // TODO:    EFI_OUT_OF_RESOURCES - add return value to function comment\r
 {\r
-  EFI_STATUS  Status;\r
-\r
-  *GuidedSep = NULL;\r
-  Status = gBS->AllocatePool (\r
-                  EfiBootServicesData,\r
-                  sizeof (EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL),\r
-                  (VOID **) GuidedSep\r
-                  );\r
-  if (EFI_ERROR (Status)) {\r
+  *GuidedSep = AllocatePool (sizeof (EFI_GUIDED_SECTION_EXTRACTION_PROTOCOL));\r
+  if (*GuidedSep == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
 \r