From 12710fe93bf669540b4dfc783fbcc31db287a5db Mon Sep 17 00:00:00 2001 From: Michael D Kinney Date: Thu, 2 Dec 2021 18:00:56 -0800 Subject: SecurityPkg: Change OPTIONAL keyword usage style REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760 Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params. Cc: Andrew Fish Cc: Leif Lindholm Cc: Michael Kubacki Signed-off-by: Michael D Kinney Reviewed-by: Jian J Wang --- SecurityPkg/Include/Library/Tcg2PpVendorLib.h | 2 +- SecurityPkg/Include/Library/Tpm2CommandLib.h | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'SecurityPkg/Include') diff --git a/SecurityPkg/Include/Library/Tcg2PpVendorLib.h b/SecurityPkg/Include/Library/Tcg2PpVendorLib.h index 569eba6874..914517f034 100644 --- a/SecurityPkg/Include/Library/Tcg2PpVendorLib.h +++ b/SecurityPkg/Include/Library/Tcg2PpVendorLib.h @@ -40,7 +40,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent UINT32 EFIAPI Tcg2PpVendorLibExecutePendingRequest ( - IN TPM2B_AUTH *PlatformAuth, OPTIONAL + IN TPM2B_AUTH *PlatformAuth OPTIONAL, IN UINT32 OperationRequest, IN OUT UINT32 *ManagementFlags, OUT BOOLEAN *ResetRequired diff --git a/SecurityPkg/Include/Library/Tpm2CommandLib.h b/SecurityPkg/Include/Library/Tpm2CommandLib.h index ee8eb62295..ad3b982d48 100644 --- a/SecurityPkg/Include/Library/Tpm2CommandLib.h +++ b/SecurityPkg/Include/Library/Tpm2CommandLib.h @@ -186,7 +186,7 @@ EFI_STATUS EFIAPI Tpm2ClearControl ( IN TPMI_RH_CLEAR AuthHandle, - IN TPMS_AUTH_COMMAND *AuthSession, OPTIONAL + IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPMI_YES_NO Disable ); @@ -340,7 +340,7 @@ EFI_STATUS EFIAPI Tpm2NvDefineSpace ( IN TPMI_RH_PROVISION AuthHandle, - IN TPMS_AUTH_COMMAND *AuthSession, OPTIONAL + IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPM2B_AUTH *Auth, IN TPM2B_NV_PUBLIC *NvPublic ); @@ -383,7 +383,7 @@ EFIAPI Tpm2NvRead ( IN TPMI_RH_NV_AUTH AuthHandle, IN TPMI_RH_NV_INDEX NvIndex, - IN TPMS_AUTH_COMMAND *AuthSession, OPTIONAL + IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN UINT16 Size, IN UINT16 Offset, IN OUT TPM2B_MAX_BUFFER *OutData @@ -407,7 +407,7 @@ EFIAPI Tpm2NvWrite ( IN TPMI_RH_NV_AUTH AuthHandle, IN TPMI_RH_NV_INDEX NvIndex, - IN TPMS_AUTH_COMMAND *AuthSession, OPTIONAL + IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPM2B_MAX_BUFFER *InData, IN UINT16 Offset ); @@ -566,7 +566,7 @@ Tpm2PcrAllocate ( EFI_STATUS EFIAPI Tpm2PcrAllocateBanks ( - IN TPM2B_AUTH *PlatformAuth, OPTIONAL + IN TPM2B_AUTH *PlatformAuth OPTIONAL, IN UINT32 SupportedPCRBanks, IN UINT32 PCRBanks ); @@ -908,7 +908,7 @@ EFIAPI Tpm2PolicySecret ( IN TPMI_DH_ENTITY AuthHandle, IN TPMI_SH_POLICY PolicySession, - IN TPMS_AUTH_COMMAND *AuthSession, OPTIONAL + IN TPMS_AUTH_COMMAND *AuthSession OPTIONAL, IN TPM2B_NONCE *NonceTPM, IN TPM2B_DIGEST *CpHashA, IN TPM2B_NONCE *PolicyRef, @@ -1004,7 +1004,7 @@ Tpm2ReadPublic ( UINT32 EFIAPI CopyAuthSessionCommand ( - IN TPMS_AUTH_COMMAND *AuthSessionIn, OPTIONAL + IN TPMS_AUTH_COMMAND *AuthSessionIn OPTIONAL, OUT UINT8 *AuthSessionOut ); -- cgit v1.2.3