]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/Dxe/Misc/InstallConfigurationTable.c
MdeModulePkg: Apply uncrustify changes
[mirror_edk2.git] / MdeModulePkg / Core / Dxe / Misc / InstallConfigurationTable.c
index ba4e55fcd01eee6220e1e5983ed51c177cafa540..f47f3bd804537a675b58f3303d4cfabb68816ea6 100755 (executable)
@@ -8,9 +8,9 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
 \r
 #include "DxeMain.h"\r
 \r
-#define CONFIG_TABLE_SIZE_INCREASED 0x10\r
+#define CONFIG_TABLE_SIZE_INCREASED  0x10\r
 \r
-UINTN mSystemTableAllocateSize = 0;\r
+UINTN  mSystemTableAllocateSize = 0;\r
 \r
 /**\r
   Boot Service called to add, modify, or remove a system configuration table from\r
@@ -30,13 +30,13 @@ UINTN mSystemTableAllocateSize = 0;
 EFI_STATUS\r
 EFIAPI\r
 CoreInstallConfigurationTable (\r
-  IN EFI_GUID *Guid,\r
-  IN VOID     *Table\r
+  IN EFI_GUID  *Guid,\r
+  IN VOID      *Table\r
   )\r
 {\r
-  UINTN                   Index;\r
-  EFI_CONFIGURATION_TABLE *EfiConfigurationTable;\r
-  EFI_CONFIGURATION_TABLE *OldTable;\r
+  UINTN                    Index;\r
+  EFI_CONFIGURATION_TABLE  *EfiConfigurationTable;\r
+  EFI_CONFIGURATION_TABLE  *OldTable;\r
 \r
   //\r
   // If Guid is NULL, then this operation cannot be performed\r
@@ -88,9 +88,7 @@ CoreInstallConfigurationTable (
       &(gDxeCoreST->ConfigurationTable[Index + 1]),\r
       (gDxeCoreST->NumberOfTableEntries - Index) * sizeof (EFI_CONFIGURATION_TABLE)\r
       );\r
-\r
   } else {\r
-\r
     //\r
     // No matching GUIDs were found, so this is an add operation.\r
     //\r
@@ -110,7 +108,7 @@ CoreInstallConfigurationTable (
       // Allocate a table with one additional entry.\r
       //\r
       mSystemTableAllocateSize += (CONFIG_TABLE_SIZE_INCREASED * sizeof (EFI_CONFIGURATION_TABLE));\r
-      EfiConfigurationTable = AllocateRuntimePool (mSystemTableAllocateSize);\r
+      EfiConfigurationTable     = AllocateRuntimePool (mSystemTableAllocateSize);\r
       if (EfiConfigurationTable == NULL) {\r
         //\r
         // If a new table could not be allocated, then return an error.\r
@@ -159,7 +157,7 @@ CoreInstallConfigurationTable (
     // Fill in the new entry\r
     //\r
     CopyGuid ((VOID *)&EfiConfigurationTable[Index].VendorGuid, Guid);\r
-    EfiConfigurationTable[Index].VendorTable  = Table;\r
+    EfiConfigurationTable[Index].VendorTable = Table;\r
 \r
     //\r
     // This is an add operation, so increment the number of table entries\r