Clean up the following module msa files, they are three networt and two PCD modules.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2551 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lgao4
2007-04-09 07:37:43 +00:00
parent 5101d837ed
commit 26aa0c2ff5
21 changed files with 161 additions and 290 deletions

View File

@@ -107,13 +107,8 @@ offer_verify (
//
// Good DHCP (or BOOTP) packet. Cache it!
//
EfiStatus = gBS->AllocatePool (
EfiBootServicesData,
(Private->offers + 1) * sizeof (DHCP4_PACKET),
(VOID **) &tmp
);
if (EFI_ERROR (EfiStatus)) {
tmp = AllocatePool ((Private->offers + 1) * sizeof (DHCP4_PACKET));
if (tmp == NULL) {
return -2;
}
@@ -126,7 +121,7 @@ offer_verify (
Private->offers * sizeof (DHCP4_PACKET)
);
gBS->FreePool (Private->offer_list);
FreePool (Private->offer_list);
}
CopyMem (&tmp[Private->offers++], rx_pkt, sizeof (DHCP4_PACKET));
@@ -388,7 +383,7 @@ PxeDhcp4Init (
if (EFI_ERROR (EfiStatus)) {
if (Private->offer_list) {
gBS->FreePool (Private->offer_list);
FreePool (Private->offer_list);
}
Private->offers = 0;