]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/DxeHstiLib/HstiAip.c
MdePkg: Apply uncrustify changes
[mirror_edk2.git] / MdePkg / Library / DxeHstiLib / HstiAip.c
index 1a3dfc148daeeea1502bd116742c7390ced8afcc..a2454ffeaa7a61556690c1cb8305473f0cb4cbe1 100644 (file)
@@ -43,16 +43,18 @@ HstiAipGetInfo (
   if ((This == NULL) || (InformationBlock == NULL) || (InformationBlockSize == NULL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
+\r
   if (!CompareGuid (InformationType, &gAdapterInfoPlatformSecurityGuid)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
 \r
-  HstiAip = HSTI_AIP_PRIVATE_DATA_FROM_THIS(This);\r
+  HstiAip = HSTI_AIP_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   *InformationBlock = AllocateCopyPool (HstiAip->HstiSize, HstiAip->Hsti);\r
   if (*InformationBlock == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
+\r
   *InformationBlockSize = HstiAip->HstiSize;\r
   return EFI_SUCCESS;\r
 }\r
@@ -93,6 +95,7 @@ HstiAipSetInfo (
   if ((This == NULL) || (InformationBlock == NULL)) {\r
     return EFI_INVALID_PARAMETER;\r
   }\r
+\r
   if (!CompareGuid (InformationType, &gAdapterInfoPlatformSecurityGuid)) {\r
     return EFI_UNSUPPORTED;\r
   }\r
@@ -101,16 +104,17 @@ HstiAipSetInfo (
     return EFI_VOLUME_CORRUPTED;\r
   }\r
 \r
-  HstiAip = HSTI_AIP_PRIVATE_DATA_FROM_THIS(This);\r
+  HstiAip = HSTI_AIP_PRIVATE_DATA_FROM_THIS (This);\r
 \r
   if (InformationBlockSize > HstiAip->HstiMaxSize) {\r
     NewHsti = AllocateZeroPool (InformationBlockSize);\r
     if (NewHsti == NULL) {\r
       return EFI_OUT_OF_RESOURCES;\r
     }\r
+\r
     FreePool (HstiAip->Hsti);\r
-    HstiAip->Hsti = NewHsti;\r
-    HstiAip->HstiSize = 0;\r
+    HstiAip->Hsti        = NewHsti;\r
+    HstiAip->HstiSize    = 0;\r
     HstiAip->HstiMaxSize = InformationBlockSize;\r
   }\r
 \r
@@ -153,16 +157,17 @@ HstiAipGetSupportedTypes (
     return EFI_INVALID_PARAMETER;\r
   }\r
 \r
-  *InfoTypesBuffer = AllocateCopyPool (sizeof(gAdapterInfoPlatformSecurityGuid), &gAdapterInfoPlatformSecurityGuid);\r
+  *InfoTypesBuffer = AllocateCopyPool (sizeof (gAdapterInfoPlatformSecurityGuid), &gAdapterInfoPlatformSecurityGuid);\r
   if (*InfoTypesBuffer == NULL) {\r
     return EFI_OUT_OF_RESOURCES;\r
   }\r
+\r
   *InfoTypesBufferCount = 1;\r
 \r
   return EFI_SUCCESS;\r
 }\r
 \r
-EFI_ADAPTER_INFORMATION_PROTOCOL mAdapterInformationProtocol = {\r
+EFI_ADAPTER_INFORMATION_PROTOCOL  mAdapterInformationProtocol = {\r
   HstiAipGetInfo,\r
   HstiAipSetInfo,\r
   HstiAipGetSupportedTypes,\r