X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FCore%2FPiSmmCore%2FInstallConfigurationTable.c;fp=MdeModulePkg%2FCore%2FPiSmmCore%2FInstallConfigurationTable.c;h=0bc51be12bf63977bb2d5701e59d1a47004e69c5;hp=57f31fa98fe5e81e81bb92b570b95a5551bed35b;hb=1436aea4d5707e672672a11bda72be2c63c936c3;hpb=7c7184e201a90a1d2376e615e55e3f4074731468 diff --git a/MdeModulePkg/Core/PiSmmCore/InstallConfigurationTable.c b/MdeModulePkg/Core/PiSmmCore/InstallConfigurationTable.c index 57f31fa98f..0bc51be12b 100644 --- a/MdeModulePkg/Core/PiSmmCore/InstallConfigurationTable.c +++ b/MdeModulePkg/Core/PiSmmCore/InstallConfigurationTable.c @@ -8,7 +8,7 @@ #include "PiSmmCore.h" -#define CONFIG_TABLE_SIZE_INCREASED 0x10 +#define CONFIG_TABLE_SIZE_INCREASED 0x10 UINTN mSmmSystemTableAllocateSize = 0; @@ -86,7 +86,6 @@ SmmInstallConfigurationTable ( &(ConfigurationTable[Index + 1]), (gSmmCoreSmst.NumberOfTableEntries - Index) * sizeof (EFI_CONFIGURATION_TABLE) ); - } else { // // No matching GUIDs were found, so this is an add operation. @@ -106,7 +105,7 @@ SmmInstallConfigurationTable ( // Allocate a table with one additional entry. // mSmmSystemTableAllocateSize += (CONFIG_TABLE_SIZE_INCREASED * sizeof (EFI_CONFIGURATION_TABLE)); - ConfigurationTable = AllocatePool (mSmmSystemTableAllocateSize); + ConfigurationTable = AllocatePool (mSmmSystemTableAllocateSize); if (ConfigurationTable == NULL) { // // If a new table could not be allocated, then return an error.