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
if ((This == NULL) || (InformationBlock == NULL)) {\r
return EFI_INVALID_PARAMETER;\r
}\r
+\r
if (!CompareGuid (InformationType, &gAdapterInfoPlatformSecurityGuid)) {\r
return EFI_UNSUPPORTED;\r
}\r
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
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