From: klu2 Date: Thu, 22 Mar 2007 09:34:49 +0000 (+0000) Subject: Need no zero pool for improving performance. X-Git-Tag: edk2-stable201903~23397 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=c91c4f470e58765856fbcec7e88d68d498ed334e Need no zero pool for improving performance. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2500 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/EdkModulePkg/Core/Dxe/FwVol/FwVol.c b/EdkModulePkg/Core/Dxe/FwVol/FwVol.c index d8137d79c6..2e92a8b921 100644 --- a/EdkModulePkg/Core/Dxe/FwVol/FwVol.c +++ b/EdkModulePkg/Core/Dxe/FwVol/FwVol.c @@ -1,6 +1,9 @@ -/*++ - -Copyright (c) 2006, Intel Corporation +/**@file + Firmware File System driver that produce Firmware Volume protocol. + Layers on top of Firmware Block protocol to produce a file abstraction + of FV based files. + +Copyright (c) 2006 - 2007 Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -9,17 +12,7 @@ http://opensource.org/licenses/bsd-license.php THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. -Module Name: - - FwVol.c - -Abstract: - - Firmware File System driver that produce Firmware Volume protocol. - Layers on top of Firmware Block protocol to produce a file abstraction - of FV based files. - ---*/ +**/ #include @@ -228,7 +221,8 @@ Returns: // the header to check to make sure the volume is valid // Size = (UINTN)(FwVolHeader->FvLength - FwVolHeader->HeaderLength); - FvDevice->CachedFv = CoreAllocateZeroBootServicesPool (Size); + FvDevice->CachedFv = CoreAllocateBootServicesPool (Size); + if (FvDevice->CachedFv == NULL) { return EFI_OUT_OF_RESOURCES; }