]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkModulePkg/Universal/Network/PxeBc/Dxe/pxe_bc_arp.c
1. UsbMassStorage: Increase the timeout of USBFloppyRead10 and USBFloppyWrite10 for...
[mirror_edk2.git] / EdkModulePkg / Universal / Network / PxeBc / Dxe / pxe_bc_arp.c
index 801f592042c7060473b8c0f8910c70994d21fe83..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
@@ -17,7 +17,7 @@ Abstract:
 --*/\r
 \r
 \r
-#include "bc.h"\r
+#include "Bc.h"\r
 \r
 //\r
 // Definitions for ARP\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