]> git.proxmox.com Git - mirror_edk2.git/commitdiff
StandaloneMmPkg: Fix ECC error 1001 in SMM Memory pool management
authorSami Mujawar <sami.mujawar@arm.com>
Thu, 3 Dec 2020 13:56:48 +0000 (13:56 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Jan 2021 11:13:39 +0000 (11:13 +0000)
Bugzilla: 3150 (https://bugzilla.tianocore.org/show_bug.cgi?id=3150)

Fix the following error reported by the Ecc tool:
[1001] 'TAB' character is not allowed in source code, please
replace each 'TAB' with two spaces.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
Acked-by: Jiewen Yao <Jiewen.yao@intel.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
StandaloneMmPkg/Core/Pool.c

index 661ef0902165e90abdb8cba9e13773129127e3ec..34371d8dc301e872a67fa23825439f2afbc0469b 100644 (file)
@@ -2,7 +2,7 @@
   SMM Memory pool management functions.\r
 \r
   Copyright (c) 2009 - 2014, Intel Corporation. All rights reserved.<BR>\r
-  Copyright (c) 2016 - 2018, ARM Limited. All rights reserved.<BR>\r
+  Copyright (c) 2016 - 2021, Arm Limited. All rights reserved.<BR>\r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
@@ -50,7 +50,7 @@ MmInitializeMemoryServices (
       continue;\r
     }\r
     DEBUG ((DEBUG_INFO, "MmAddMemoryRegion %d : 0x%016lx - 0x%016lx\n",\r
-           Index, MmramRanges[Index].CpuStart, MmramRanges[Index].PhysicalSize));\r
+      Index, MmramRanges[Index].CpuStart, MmramRanges[Index].PhysicalSize));\r
     MmAddMemoryRegion (\r
       MmramRanges[Index].CpuStart,\r
       MmramRanges[Index].PhysicalSize,\r
@@ -86,7 +86,7 @@ InternalAllocPoolByIndex (
   Hdr = NULL;\r
   if (PoolIndex == MAX_POOL_INDEX) {\r
     Status = MmInternalAllocatePages (\r
-                    AllocateAnyPages,\r
+               AllocateAnyPages,\r
                EfiRuntimeServicesData,\r
                EFI_SIZE_TO_PAGES (MAX_POOL_SIZE << 1),\r
                &Address\r