/*++\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
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
// 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