]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/Network/PxeBc/Dxe/pxe_bc_arp.c
Clean up the following module msa files, they are three networt and two PCD modules.
[mirror_edk2.git] / EdkModulePkg / Universal / Network / PxeBc / Dxe / pxe_bc_arp.c
index 15a056a95e2b43d44675d0d6fd146f9b320089d7..b7edbe69a87a6fdcd6f5f0c03273958d72132e04 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
@@ -340,7 +340,6 @@ Returns:
   EFI_PXE_BASE_CODE_MODE  *PxeBcMode;\r
   EFI_SIMPLE_NETWORK_MODE *SnpMode;\r
   ARP_PACKET              *ArpPacket;\r
-  EFI_STATUS              Status;\r
   UINTN                   HardwareAddrLength;\r
   UINT8                   *SrcProtocolAddrPtr;\r
   UINT8                   *DestHardwareAddrptr;\r
@@ -357,14 +356,9 @@ Returns:
   // Allocate ARP buffer\r
   //\r
   if (Private->ArpBuffer == NULL) {\r
-    Status = gBS->AllocatePool (\r
-                    EfiBootServicesData,\r
-                    SnpMode->MediaHeaderSize + sizeof (ARP_PACKET),\r
-                    (VOID **) &Private->ArpBuffer\r
-                    );\r
-\r
-    if (EFI_ERROR (Status)) {\r
-      return Status;\r
+    Private->ArpBuffer = AllocatePool (SnpMode->MediaHeaderSize + sizeof (ARP_PACKET));\r
+    if (Private->ArpBuffer == NULL) {\r
+      return EFI_OUT_OF_RESOURCES;\r
     }\r
   }\r
 \r