]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Library/BaseUefiTianoCustomDecompressLib/BaseUefiTianoCustomDecompressLib.c
Fix build break caused by a unresolved external symbol _memset in BaseUefiTianoCustom...
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / BaseUefiTianoCustomDecompressLib / BaseUefiTianoCustomDecompressLib.c
index b3b72b560d0c26662f341e79bf8b5439f13b5c9b..9872ded38f358b633b511b7860ec77868c9a99f3 100644 (file)
@@ -632,7 +632,6 @@ UefiTianoDecompress (
   IN UINT32      Version\r
   )\r
 {\r
-  UINT32           Index;\r
   UINT32           CompSize;\r
   UINT32           OrigSize;\r
   SCRATCH_DATA     *Sd;\r
@@ -660,9 +659,8 @@ UefiTianoDecompress (
 \r
   Src = Src + 8;\r
 \r
-  for (Index = 0; Index < sizeof (SCRATCH_DATA); Index++) {\r
-    ((UINT8 *) Sd)[Index] = 0;\r
-  }\r
+  SetMem (Sd, sizeof (SCRATCH_DATA), 0);\r
+\r
   //\r
   // The length of the field 'Position Set Code Length Array Size' in Block Header.\r
   // For UEFI 2.0 de/compression algorithm(Version 1), mPBit = 4\r