diff options
author | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-11-13 06:13:59 +0000 |
---|---|---|
committer | xdu2 <xdu2@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-11-13 06:13:59 +0000 |
commit | 766c7483c335931b190a78d78d62e5a5e69dc8b9 (patch) | |
tree | 508f80920e6b3671232534302e1e6b13a41206ae /MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Driver.c | |
parent | 2f3c9af25ecab34663662d69e3ad749a931258a8 (diff) | |
download | edk2-766c7483c335931b190a78d78d62e5a5e69dc8b9.zip edk2-766c7483c335931b190a78d78d62e5a5e69dc8b9.tar.gz edk2-766c7483c335931b190a78d78d62e5a5e69dc8b9.tar.bz2 |
Update network drivers to use FreePool() instead of gBS->FreePool().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9424 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Driver.c')
-rw-r--r-- | MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Driver.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Driver.c b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Driver.c index 63dcc6c..8ceb248 100644 --- a/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Driver.c +++ b/MdeModulePkg/Universal/Network/Mtftp4Dxe/Mtftp4Driver.c @@ -180,7 +180,7 @@ Mtftp4CreateService ( );
if (EFI_ERROR (Status)) {
- gBS->FreePool (MtftpSb);
+ FreePool (MtftpSb);
return Status;
}
@@ -197,7 +197,7 @@ Mtftp4CreateService ( );
if (EFI_ERROR (Status)) {
gBS->CloseEvent (MtftpSb->Timer);
- gBS->FreePool (MtftpSb);
+ FreePool (MtftpSb);
return Status;
}
@@ -212,7 +212,7 @@ Mtftp4CreateService ( if (MtftpSb->ConnectUdp == NULL) {
gBS->CloseEvent (MtftpSb->TimerToGetMap);
gBS->CloseEvent (MtftpSb->Timer);
- gBS->FreePool (MtftpSb);
+ FreePool (MtftpSb);
return EFI_DEVICE_ERROR;
}
@@ -311,7 +311,7 @@ Mtftp4DriverBindingStart ( ON_ERROR:
Mtftp4CleanService (MtftpSb);
- gBS->FreePool (MtftpSb);
+ FreePool (MtftpSb);
return Status;
}
@@ -390,7 +390,7 @@ Mtftp4DriverBindingStop ( Mtftp4CleanService (MtftpSb);
- gBS->FreePool (MtftpSb);
+ FreePool (MtftpSb);
} else {
while (!IsListEmpty (&MtftpSb->Children)) {
@@ -482,7 +482,7 @@ Mtftp4ServiceBindingCreateChild ( );
if (Instance->UnicastPort == NULL) {
- gBS->FreePool (Instance);
+ FreePool (Instance);
return EFI_OUT_OF_RESOURCES;
}
@@ -538,7 +538,7 @@ ON_ERROR: if (EFI_ERROR (Status)) {
UdpIoFreeIo (Instance->UnicastPort);
- gBS->FreePool (Instance);
+ FreePool (Instance);
}
return Status;
@@ -637,6 +637,6 @@ Mtftp4ServiceBindingDestroyChild ( gBS->RestoreTPL (OldTpl);
- gBS->FreePool (Instance);
+ FreePool (Instance);
return EFI_SUCCESS;
}
|