summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Universal/HiiDatabaseDxe
diff options
context:
space:
mode:
authorEric Dong <eric.dong@intel.com>2016-11-15 10:26:47 +0800
committerStar Zeng <star.zeng@intel.com>2016-11-17 17:32:35 +0800
commita52aed37f34650787d8dedf9b37235ad0ea9a2f4 (patch)
treeb9b7a38d528854f0f9f3c815a064830031a2a1ef /MdeModulePkg/Universal/HiiDatabaseDxe
parent17abe97671eee6fa51cea729fc31c2ddad12628f (diff)
downloadedk2-a52aed37f34650787d8dedf9b37235ad0ea9a2f4.tar.gz
edk2-a52aed37f34650787d8dedf9b37235ad0ea9a2f4.tar.bz2
edk2-a52aed37f34650787d8dedf9b37235ad0ea9a2f4.zip
MdeModulePkg HiiDatabase: Remove extra memory initialization.
The memory will be set to background color after success allocate the data, so not need to call AllocateZeroPool. Related bugz: https://bugzilla.tianocore.org/show_bug.cgi?id=223 Cc: Dandan Bi <dandan.bi@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Universal/HiiDatabaseDxe')
-rw-r--r--MdeModulePkg/Universal/HiiDatabaseDxe/Font.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c
index 7855c7e454..9bef0642af 100644
--- a/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c
+++ b/MdeModulePkg/Universal/HiiDatabaseDxe/Font.c
@@ -2056,7 +2056,7 @@ HiiStringToImage (
if ((Flags & EFI_HII_DIRECT_TO_SCREEN) == EFI_HII_DIRECT_TO_SCREEN) {
BltBuffer = NULL;
if (RowInfo[RowIndex].LineWidth != 0) {
- BltBuffer = AllocateZeroPool (RowInfo[RowIndex].LineWidth * RowInfo[RowIndex].LineHeight * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));
+ BltBuffer = AllocatePool (RowInfo[RowIndex].LineWidth * RowInfo[RowIndex].LineHeight * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));
if (BltBuffer == NULL) {
Status = EFI_OUT_OF_RESOURCES;
goto Exit;