diff options
author | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-14 02:02:43 +0000 |
---|---|---|
committer | lgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524> | 2007-03-14 02:02:43 +0000 |
commit | 2c3b5ec562c7b43a73424e1be25e2053d1edfe4f (patch) | |
tree | 01495edfd3c8cdd9ae39054443a47b198bc48e10 /EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c | |
parent | 9db9711c414fe3207ffae81b3c1627554c428308 (diff) | |
download | edk2-platforms-2c3b5ec562c7b43a73424e1be25e2053d1edfe4f.tar.xz |
Clean up the gBS sevice (CopyMem, SetMem, AllocatePool, FreePool) with the corresponding APIs defined in Mde library class for these modules.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2456 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c')
-rw-r--r-- | EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c b/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c index 3014b200ac..94a4a2b5b7 100644 --- a/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c +++ b/EdkModulePkg/Universal/DevicePath/Dxe/DevicePathFromText.c @@ -2277,10 +2277,10 @@ ConvertTextToDeviceNode ( DeviceNode = DumpNode (DeviceNodeStr);
} else {
DeviceNode = DumpNode (ParamStr);
- gBS->FreePool (ParamStr);
+ FreePool (ParamStr);
}
- gBS->FreePool (DeviceNodeStr);
+ FreePool (DeviceNodeStr);
return DeviceNode;
}
@@ -2346,12 +2346,12 @@ ConvertTextToDevicePath ( DeviceNode = DumpNode (DeviceNodeStr);
} else {
DeviceNode = DumpNode (ParamStr);
- gBS->FreePool (ParamStr);
+ FreePool (ParamStr);
}
NewDevicePath = AppendDeviceNodeProtocolInterface (DevicePath, DeviceNode);
- gBS->FreePool (DevicePath);
- gBS->FreePool (DeviceNode);
+ FreePool (DevicePath);
+ FreePool (DeviceNode);
DevicePath = NewDevicePath;
if (IsInstanceEnd) {
@@ -2359,12 +2359,12 @@ ConvertTextToDevicePath ( SetDevicePathInstanceEndNode (DeviceNode);
NewDevicePath = AppendDeviceNodeProtocolInterface (DevicePath, DeviceNode);
- gBS->FreePool (DevicePath);
- gBS->FreePool (DeviceNode);
+ FreePool (DevicePath);
+ FreePool (DeviceNode);
DevicePath = NewDevicePath;
}
}
- gBS->FreePool (DevicePathStr);
+ FreePool (DevicePathStr);
return DevicePath;
}
|