]> git.proxmox.com Git - mirror_edk2.git/blobdiff - SecurityPkg/Library/Tpm2DeviceLibTcg2/Tpm2DeviceLibTcg2.c
SecurityPkg: Apply uncrustify changes
[mirror_edk2.git] / SecurityPkg / Library / Tpm2DeviceLibTcg2 / Tpm2DeviceLibTcg2.c
index 9d12695a62581f527ed448d5e50b7753a8a2a106..3c8cf4fa117a9ffcc20c6ebdf2b0bf0528c4f176 100644 (file)
@@ -31,17 +31,17 @@ EFI_TCG2_PROTOCOL  *mTcg2Protocol = NULL;
 EFI_STATUS\r
 EFIAPI\r
 Tpm2SubmitCommand (\r
-  IN UINT32            InputParameterBlockSize,\r
-  IN UINT8             *InputParameterBlock,\r
-  IN OUT UINT32        *OutputParameterBlockSize,\r
-  IN UINT8             *OutputParameterBlock\r
+  IN UINT32      InputParameterBlockSize,\r
+  IN UINT8       *InputParameterBlock,\r
+  IN OUT UINT32  *OutputParameterBlockSize,\r
+  IN UINT8       *OutputParameterBlock\r
   )\r
 {\r
-  EFI_STATUS                Status;\r
-  TPM2_RESPONSE_HEADER      *Header;\r
+  EFI_STATUS            Status;\r
+  TPM2_RESPONSE_HEADER  *Header;\r
 \r
   if (mTcg2Protocol == NULL) {\r
-    Status = gBS->LocateProtocol (&gEfiTcg2ProtocolGuid, NULL, (VOID **) &mTcg2Protocol);\r
+    Status = gBS->LocateProtocol (&gEfiTcg2ProtocolGuid, NULL, (VOID **)&mTcg2Protocol);\r
     if (EFI_ERROR (Status)) {\r
       //\r
       // Tcg2 protocol is not installed. So, TPM2 is not present.\r
@@ -50,6 +50,7 @@ Tpm2SubmitCommand (
       return EFI_NOT_FOUND;\r
     }\r
   }\r
+\r
   //\r
   // Assume when Tcg2 Protocol is ready, RequestUseTpm already done.\r
   //\r
@@ -63,7 +64,8 @@ Tpm2SubmitCommand (
   if (EFI_ERROR (Status)) {\r
     return Status;\r
   }\r
-  Header = (TPM2_RESPONSE_HEADER *)OutputParameterBlock;\r
+\r
+  Header                    = (TPM2_RESPONSE_HEADER *)OutputParameterBlock;\r
   *OutputParameterBlockSize = SwapBytes32 (Header->paramSize);\r
 \r
   return EFI_SUCCESS;\r
@@ -82,10 +84,10 @@ Tpm2RequestUseTpm (
   VOID\r
   )\r
 {\r
-  EFI_STATUS   Status;\r
+  EFI_STATUS  Status;\r
 \r
   if (mTcg2Protocol == NULL) {\r
-    Status = gBS->LocateProtocol (&gEfiTcg2ProtocolGuid, NULL, (VOID **) &mTcg2Protocol);\r
+    Status = gBS->LocateProtocol (&gEfiTcg2ProtocolGuid, NULL, (VOID **)&mTcg2Protocol);\r
     if (EFI_ERROR (Status)) {\r
       //\r
       // Tcg2 protocol is not installed. So, TPM2 is not present.\r
@@ -94,6 +96,7 @@ Tpm2RequestUseTpm (
       return EFI_NOT_FOUND;\r
     }\r
   }\r
+\r
   //\r
   // Assume when Tcg2 Protocol is ready, RequestUseTpm already done.\r
   //\r
@@ -112,7 +115,7 @@ Tpm2RequestUseTpm (
 EFI_STATUS\r
 EFIAPI\r
 Tpm2RegisterTpm2DeviceLib (\r
-  IN TPM2_DEVICE_INTERFACE   *Tpm2Device\r
+  IN TPM2_DEVICE_INTERFACE  *Tpm2Device\r
   )\r
 {\r
   return EFI_UNSUPPORTED;\r