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/DataHub | |
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/DataHub')
-rw-r--r-- | EdkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/EdkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.c b/EdkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.c index 0ff5b4fd87..dd4a5a6b51 100644 --- a/EdkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.c +++ b/EdkModulePkg/Universal/DataHub/DataHub/Dxe/DataHub.c @@ -124,8 +124,9 @@ Returns: return Status;
}
- Status = gBS->AllocatePool (EfiBootServicesData, TotalSize, (VOID **) &LogEntry);
- if (EFI_ERROR (Status)) {
+ LogEntry = AllocatePool (TotalSize);
+
+ if (LogEntry == NULL) {
EfiReleaseLock (&Private->DataLock);
return EFI_OUT_OF_RESOURCES;
}
@@ -386,7 +387,7 @@ Returns: // Search for duplicate entries
//
if (FindFilterDriverByEvent (&Private->FilterDriverListHead, FilterEvent) != NULL) {
- gBS->FreePool (FilterDriver);
+ FreePool (FilterDriver);
return EFI_ALREADY_STARTED;
}
//
|