OvmfPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the OvmfPkg package Cc: Andrew Fish <afish@apple.com> Cc: Leif Lindholm <leif@nuviainc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com> Reviewed-by: Andrew Fish <afish@apple.com>
This commit is contained in:
committed by
mergify[bot]
parent
d1050b9dff
commit
ac0a286f4d
@@ -11,7 +11,6 @@
|
||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
**/
|
||||
|
||||
|
||||
#include <PiPei.h>
|
||||
|
||||
#include <Guid/TpmInstance.h>
|
||||
@@ -22,7 +21,7 @@
|
||||
|
||||
#include "Tpm12Support.h"
|
||||
|
||||
STATIC CONST EFI_PEI_PPI_DESCRIPTOR mTpmSelectedPpi = {
|
||||
STATIC CONST EFI_PEI_PPI_DESCRIPTOR mTpmSelectedPpi = {
|
||||
(EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST),
|
||||
&gEfiTpmDeviceSelectedGuid,
|
||||
NULL
|
||||
@@ -47,15 +46,15 @@ Tcg2ConfigPeimEntryPoint (
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||
)
|
||||
{
|
||||
UINTN Size;
|
||||
EFI_STATUS Status;
|
||||
UINTN Size;
|
||||
EFI_STATUS Status;
|
||||
|
||||
DEBUG ((DEBUG_INFO, "%a\n", __FUNCTION__));
|
||||
|
||||
Status = InternalTpm12Detect ();
|
||||
if (!EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_INFO, "%a: TPM1.2 detected\n", __FUNCTION__));
|
||||
Size = sizeof (gEfiTpmDeviceInstanceTpm12Guid);
|
||||
Size = sizeof (gEfiTpmDeviceInstanceTpm12Guid);
|
||||
Status = PcdSetPtrS (
|
||||
PcdTpmInstanceGuid,
|
||||
&Size,
|
||||
@@ -66,7 +65,7 @@ Tcg2ConfigPeimEntryPoint (
|
||||
Status = Tpm2RequestUseTpm ();
|
||||
if (!EFI_ERROR (Status)) {
|
||||
DEBUG ((DEBUG_INFO, "%a: TPM2 detected\n", __FUNCTION__));
|
||||
Size = sizeof (gEfiTpmDeviceInstanceTpm20DtpmGuid);
|
||||
Size = sizeof (gEfiTpmDeviceInstanceTpm20DtpmGuid);
|
||||
Status = PcdSetPtrS (
|
||||
PcdTpmInstanceGuid,
|
||||
&Size,
|
||||
|
@@ -14,8 +14,8 @@
|
||||
|
||||
#pragma pack (1)
|
||||
typedef struct {
|
||||
TPM_RSP_COMMAND_HDR Hdr;
|
||||
TPM_CURRENT_TICKS CurrentTicks;
|
||||
TPM_RSP_COMMAND_HDR Hdr;
|
||||
TPM_CURRENT_TICKS CurrentTicks;
|
||||
} TPM_RSP_GET_TICKS;
|
||||
#pragma pack ()
|
||||
|
||||
@@ -44,8 +44,12 @@ TestTpm12 (
|
||||
Command.ordinal = SwapBytes32 (TPM_ORD_GetTicks);
|
||||
|
||||
Length = sizeof (Response);
|
||||
Status = Tpm12SubmitCommand (sizeof (Command), (UINT8 *)&Command, &Length,
|
||||
(UINT8 *)&Response);
|
||||
Status = Tpm12SubmitCommand (
|
||||
sizeof (Command),
|
||||
(UINT8 *)&Command,
|
||||
&Length,
|
||||
(UINT8 *)&Response
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
@@ -68,7 +72,7 @@ InternalTpm12Detect (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_STATUS Status;
|
||||
|
||||
Status = Tpm12RequestUseTpm ();
|
||||
if (EFI_ERROR (Status)) {
|
||||
|
Reference in New Issue
Block a user