]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg HiiDatabase: Remove extra memory initialization.
authorEric Dong <eric.dong@intel.com>
Tue, 15 Nov 2016 02:26:47 +0000 (10:26 +0800)
committerStar Zeng <star.zeng@intel.com>
Thu, 17 Nov 2016 09:32:35 +0000 (17:32 +0800)
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>
MdeModulePkg/Universal/HiiDatabaseDxe/Font.c

index 7855c7e4544ab319007869f4ab1ff229068a8720..9bef0642af6c0935e421551826f2c54edb3e8810 100644 (file)
@@ -2056,7 +2056,7 @@ HiiStringToImage (
     if ((Flags & EFI_HII_DIRECT_TO_SCREEN) == EFI_HII_DIRECT_TO_SCREEN) {\r
       BltBuffer = NULL;\r
       if (RowInfo[RowIndex].LineWidth != 0) {\r
-        BltBuffer = AllocateZeroPool (RowInfo[RowIndex].LineWidth * RowInfo[RowIndex].LineHeight * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));\r
+        BltBuffer = AllocatePool (RowInfo[RowIndex].LineWidth * RowInfo[RowIndex].LineHeight * sizeof (EFI_GRAPHICS_OUTPUT_BLT_PIXEL));\r
         if (BltBuffer == NULL) {\r
           Status = EFI_OUT_OF_RESOURCES;\r
           goto Exit;\r