SecurityPkg: Apply uncrustify changes
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737 Apply uncrustify changes to .c/.h files in the SecurityPkg 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: Jian J Wang <jian.j.wang@intel.com>
This commit is contained in:
committed by
mergify[bot]
parent
39de741e2d
commit
c411b485b6
@@ -15,7 +15,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
#include <Library/PcdLib.h>
|
||||
#include <Library/Tpm2DeviceLib.h>
|
||||
|
||||
EFI_GUID mInternalTpm2DeviceInterfaceGuid = {
|
||||
EFI_GUID mInternalTpm2DeviceInterfaceGuid = {
|
||||
0x349cf818, 0xc0ba, 0x4c43, { 0x92, 0x9a, 0xc8, 0xa1, 0xb1, 0xb3, 0xd2, 0x55 }
|
||||
};
|
||||
|
||||
@@ -29,12 +29,13 @@ InternalGetTpm2DeviceInterface (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
EFI_HOB_GUID_TYPE *Hob;
|
||||
EFI_HOB_GUID_TYPE *Hob;
|
||||
|
||||
Hob = GetFirstGuidHob (&mInternalTpm2DeviceInterfaceGuid);
|
||||
if (Hob == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return (TPM2_DEVICE_INTERFACE *)(Hob + 1);
|
||||
}
|
||||
|
||||
@@ -53,13 +54,13 @@ InternalGetTpm2DeviceInterface (
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
Tpm2SubmitCommand (
|
||||
IN UINT32 InputParameterBlockSize,
|
||||
IN UINT8 *InputParameterBlock,
|
||||
IN OUT UINT32 *OutputParameterBlockSize,
|
||||
IN UINT8 *OutputParameterBlock
|
||||
IN UINT32 InputParameterBlockSize,
|
||||
IN UINT8 *InputParameterBlock,
|
||||
IN OUT UINT32 *OutputParameterBlockSize,
|
||||
IN UINT8 *OutputParameterBlock
|
||||
)
|
||||
{
|
||||
TPM2_DEVICE_INTERFACE *Tpm2DeviceInterface;
|
||||
TPM2_DEVICE_INTERFACE *Tpm2DeviceInterface;
|
||||
|
||||
Tpm2DeviceInterface = InternalGetTpm2DeviceInterface ();
|
||||
if (Tpm2DeviceInterface == NULL) {
|
||||
@@ -87,12 +88,13 @@ Tpm2RequestUseTpm (
|
||||
VOID
|
||||
)
|
||||
{
|
||||
TPM2_DEVICE_INTERFACE *Tpm2DeviceInterface;
|
||||
TPM2_DEVICE_INTERFACE *Tpm2DeviceInterface;
|
||||
|
||||
Tpm2DeviceInterface = InternalGetTpm2DeviceInterface ();
|
||||
if (Tpm2DeviceInterface == NULL) {
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
|
||||
return Tpm2DeviceInterface->Tpm2RequestUseTpm ();
|
||||
}
|
||||
|
||||
@@ -108,12 +110,12 @@ Tpm2RequestUseTpm (
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
Tpm2RegisterTpm2DeviceLib (
|
||||
IN TPM2_DEVICE_INTERFACE *Tpm2Device
|
||||
IN TPM2_DEVICE_INTERFACE *Tpm2Device
|
||||
)
|
||||
{
|
||||
TPM2_DEVICE_INTERFACE *Tpm2DeviceInterface;
|
||||
TPM2_DEVICE_INTERFACE *Tpm2DeviceInterface;
|
||||
|
||||
if (!CompareGuid (PcdGetPtr(PcdTpmInstanceGuid), &Tpm2Device->ProviderGuid)){
|
||||
if (!CompareGuid (PcdGetPtr (PcdTpmInstanceGuid), &Tpm2Device->ProviderGuid)) {
|
||||
DEBUG ((DEBUG_WARN, "WARNING: Tpm2RegisterTpm2DeviceLib - does not support %g registration\n", &Tpm2Device->ProviderGuid));
|
||||
return EFI_UNSUPPORTED;
|
||||
}
|
||||
@@ -124,10 +126,10 @@ Tpm2RegisterTpm2DeviceLib (
|
||||
// In PEI phase, there will be shadow driver dispatched again.
|
||||
//
|
||||
DEBUG ((DEBUG_INFO, "Tpm2RegisterTpm2DeviceLib - Override\n"));
|
||||
CopyMem (Tpm2DeviceInterface, Tpm2Device, sizeof(*Tpm2Device));
|
||||
CopyMem (Tpm2DeviceInterface, Tpm2Device, sizeof (*Tpm2Device));
|
||||
return EFI_SUCCESS;
|
||||
} else {
|
||||
Tpm2Device = BuildGuidDataHob (&mInternalTpm2DeviceInterfaceGuid, Tpm2Device, sizeof(*Tpm2Device));
|
||||
Tpm2Device = BuildGuidDataHob (&mInternalTpm2DeviceInterfaceGuid, Tpm2Device, sizeof (*Tpm2Device));
|
||||
if (Tpm2Device != NULL) {
|
||||
return EFI_SUCCESS;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user