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/Ip4ConfigDxe | |
parent | 2f3c9af25ecab34663662d69e3ad749a931258a8 (diff) | |
download | edk2-platforms-766c7483c335931b190a78d78d62e5a5e69dc8b9.tar.xz |
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/Ip4ConfigDxe')
4 files changed, 17 insertions, 17 deletions
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c index fa0445e247..5f8821a4d6 100644 --- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c +++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4Config.c @@ -49,7 +49,7 @@ Ip4ConfigGetNicInfo ( Config = Ip4ConfigFindNicVariable (Variable, NicAddr);
if (Config == NULL) {
- gBS->FreePool (Variable);
+ FreePool (Variable);
return NULL;
}
@@ -62,14 +62,14 @@ Ip4ConfigGetNicInfo ( Ip4ConfigWriteVariable (NewVariable);
if (NewVariable != NULL) {
- gBS->FreePool (NewVariable);
+ FreePool (NewVariable);
};
- gBS->FreePool (Config);
+ FreePool (Config);
Config = NULL;
}
- gBS->FreePool (Variable);
+ FreePool (Variable);
return Config;
}
@@ -131,7 +131,7 @@ EfiNicIp4ConfigGetInfo ( *ConfigLen = Len;
- gBS->FreePool (Config);
+ FreePool (Config);
return Status;
}
@@ -200,14 +200,14 @@ EfiNicIp4ConfigSetInfo ( Status = Ip4ConfigWriteVariable (NewVariable);
if (NewVariable != NULL) {
- gBS->FreePool (NewVariable);
+ FreePool (NewVariable);
}
//
// Variable is NULL when saving the first configure parameter
//
if (Variable != NULL) {
- gBS->FreePool (Variable);
+ FreePool (Variable);
}
if (EFI_ERROR (Status)) {
@@ -277,7 +277,7 @@ Ip4ConfigOnDhcp4Complete ( if (Instance->NicConfig != NULL) {
ASSERT (Instance->NicConfig->Source == IP4_CONFIG_SOURCE_DHCP);
Perment = Instance->NicConfig->Perment;
- gBS->FreePool (Instance->NicConfig);
+ FreePool (Instance->NicConfig);
}
Instance->NicConfig = AllocatePool (sizeof (NIC_IP4_CONFIG_INFO) + 2* sizeof (EFI_IP4_ROUTE_TABLE));
@@ -741,7 +741,7 @@ Ip4ConfigCleanConfig ( )
{
if (Instance->NicConfig != NULL) {
- gBS->FreePool (Instance->NicConfig);
+ FreePool (Instance->NicConfig);
Instance->NicConfig = NULL;
}
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c index 503c7cb814..a31a605c99 100644 --- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c +++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigDriver.c @@ -335,21 +335,21 @@ Ip4ConfigDriverBindingStart ( Ip4ConfigWriteVariable (NewVariable);
if (NewVariable != NULL) {
- gBS->FreePool (NewVariable);
+ FreePool (NewVariable);
}
ON_EXIT:
- gBS->FreePool (Variable);
+ FreePool (Variable);
if (NicConfig != NULL) {
- gBS->FreePool (NicConfig);
+ FreePool (NicConfig);
}
return EFI_SUCCESS;
ON_ERROR:
if (Instance != NULL) {
- gBS->FreePool (Instance);
+ FreePool (Instance);
}
if (Mnp != NULL) {
@@ -506,7 +506,7 @@ Ip4ConfigDriverBindingStop ( Ip4ConfigCleanConfig (Instance);
mIp4ConfigNicList[Instance->NicIndex] = NULL;
- gBS->FreePool (Instance);
+ FreePool (Instance);
return EFI_SUCCESS;
}
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigNv.c b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigNv.c index c97184ae2d..9e7850072b 100644 --- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigNv.c +++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/Ip4ConfigNv.c @@ -1039,7 +1039,7 @@ Ip4ConfigUpdateForm ( mNumberOfIp4Devices--;
RemoveEntryList (&ConfigFormEntry->Link);
- gBS->FreePool (ConfigFormEntry);
+ FreePool (ConfigFormEntry);
}
//
diff --git a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/NicIp4Variable.c b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/NicIp4Variable.c index 17709af107..86f56941bc 100644 --- a/MdeModulePkg/Universal/Network/Ip4ConfigDxe/NicIp4Variable.c +++ b/MdeModulePkg/Universal/Network/Ip4ConfigDxe/NicIp4Variable.c @@ -151,7 +151,7 @@ REMOVE_VARIABLE: ON_ERROR:
if (Variable != NULL) {
- gBS->FreePool (Variable);
+ FreePool (Variable);
}
return NULL;
@@ -296,7 +296,7 @@ Ip4ConfigModifyVariable ( if (Old != NULL) {
TotalLen -= SIZEOF_NIC_IP4_CONFIG_INFO (Old);
- gBS->FreePool (Old);
+ FreePool (Old);
}
if (Config != NULL) {
|