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
@@ -27,17 +27,17 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
LockTpmPhysicalPresence (
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||
);
|
||||
|
||||
//
|
||||
// Global definitions for lock physical presence PPI and its descriptor.
|
||||
//
|
||||
PEI_LOCK_PHYSICAL_PRESENCE_PPI mLockPhysicalPresencePpi = {
|
||||
PEI_LOCK_PHYSICAL_PRESENCE_PPI mLockPhysicalPresencePpi = {
|
||||
LockTpmPhysicalPresence
|
||||
};
|
||||
|
||||
EFI_PEI_PPI_DESCRIPTOR mLockPhysicalPresencePpiList = {
|
||||
EFI_PEI_PPI_DESCRIPTOR mLockPhysicalPresencePpiList = {
|
||||
EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST,
|
||||
&gPeiLockPhysicalPresencePpiGuid,
|
||||
&mLockPhysicalPresencePpi
|
||||
@@ -55,13 +55,13 @@ EFI_PEI_PPI_DESCRIPTOR mLockPhysicalPresencePpiList = {
|
||||
BOOLEAN
|
||||
EFIAPI
|
||||
LockTpmPhysicalPresence (
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
EFI_PEI_READ_ONLY_VARIABLE2_PPI *Variable;
|
||||
UINTN DataSize;
|
||||
EFI_PHYSICAL_PRESENCE TcgPpData;
|
||||
EFI_STATUS Status;
|
||||
EFI_PEI_READ_ONLY_VARIABLE2_PPI *Variable;
|
||||
UINTN DataSize;
|
||||
EFI_PHYSICAL_PRESENCE TcgPpData;
|
||||
|
||||
//
|
||||
// The CRTM has sensed the physical presence assertion of the user. For example,
|
||||
@@ -85,14 +85,14 @@ LockTpmPhysicalPresence (
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
DataSize = sizeof (EFI_PHYSICAL_PRESENCE);
|
||||
Status = Variable->GetVariable (
|
||||
Variable,
|
||||
PHYSICAL_PRESENCE_VARIABLE,
|
||||
&gEfiPhysicalPresenceGuid,
|
||||
NULL,
|
||||
&DataSize,
|
||||
&TcgPpData
|
||||
);
|
||||
Status = Variable->GetVariable (
|
||||
Variable,
|
||||
PHYSICAL_PRESENCE_VARIABLE,
|
||||
&gEfiPhysicalPresenceGuid,
|
||||
NULL,
|
||||
&DataSize,
|
||||
&TcgPpData
|
||||
);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
if (TcgPpData.PPRequest != 0) {
|
||||
return FALSE;
|
||||
@@ -120,8 +120,8 @@ LockTpmPhysicalPresence (
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
PeimEntry (
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||
)
|
||||
{
|
||||
return PeiServicesInstallPpi (&mLockPhysicalPresencePpiList);
|
||||
|
Reference in New Issue
Block a user