diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-02 18:00:49 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | e3917e22e769898bb0d08d0112e768437f1ff9fb (patch) | |
tree | 3a9d1241d3caaa5846e1ec936c38411c0f660250 /MdeModulePkg/Universal/PCD/Dxe | |
parent | 9c721071d30e69fd47f583cde370c3954cba974d (diff) | |
download | edk2-e3917e22e769898bb0d08d0112e768437f1ff9fb.zip edk2-e3917e22e769898bb0d08d0112e768437f1ff9fb.tar.gz edk2-e3917e22e769898bb0d08d0112e768437f1ff9fb.tar.bz2 |
MdeModulePkg: 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 <afish@apple.com>
Cc: Leif Lindholm <leif@nuviainc.com>
Cc: Michael Kubacki <michael.kubacki@microsoft.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
Diffstat (limited to 'MdeModulePkg/Universal/PCD/Dxe')
-rw-r--r-- | MdeModulePkg/Universal/PCD/Dxe/Pcd.c | 8 | ||||
-rw-r--r-- | MdeModulePkg/Universal/PCD/Dxe/Service.c | 7 | ||||
-rw-r--r-- | MdeModulePkg/Universal/PCD/Dxe/Service.h | 11 |
3 files changed, 11 insertions, 15 deletions
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c index cdb9b4f..2a9135b 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Pcd.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Pcd.c @@ -1044,7 +1044,7 @@ DxePcdSetBoolEx ( EFI_STATUS
EFIAPI
DxeRegisterCallBackOnSet (
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
)
@@ -1081,7 +1081,7 @@ DxeRegisterCallBackOnSet ( EFI_STATUS
EFIAPI
DxeUnRegisterCallBackOnSet (
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
)
@@ -1133,7 +1133,7 @@ DxeUnRegisterCallBackOnSet ( EFI_STATUS
EFIAPI
DxePcdGetNextToken (
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN OUT UINTN *TokenNumber
)
{
@@ -1374,5 +1374,3 @@ DxePcdGetNextTokenSpace ( return EFI_NOT_FOUND;
}
-
-
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c b/MdeModulePkg/Universal/PCD/Dxe/Service.c index badeec8..9be7b66 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c @@ -522,7 +522,7 @@ GetWorker ( EFI_STATUS
DxeRegisterCallBackWorker (
IN UINTN TokenNumber,
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
)
{
@@ -581,7 +581,7 @@ DxeRegisterCallBackWorker ( EFI_STATUS
DxeUnRegisterCallBackWorker (
IN UINTN TokenNumber,
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
)
{
@@ -1018,7 +1018,7 @@ GetHiiVariable ( VOID
InvokeCallbackOnSet (
UINT32 ExTokenNumber,
- CONST EFI_GUID *Guid, OPTIONAL
+ CONST EFI_GUID *Guid OPTIONAL,
UINTN TokenNumber,
VOID *Data,
UINTN Size
@@ -1899,4 +1899,3 @@ VariableLockCallBack ( VariableLockDynamicHiiPcd (FALSE, VariableLock);
}
}
-
diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.h b/MdeModulePkg/Universal/PCD/Dxe/Service.h index 6109458..5cf13cb 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.h +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.h @@ -724,7 +724,7 @@ DxePcdSetBoolEx ( EFI_STATUS
EFIAPI
DxeRegisterCallBackOnSet (
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
);
@@ -744,7 +744,7 @@ DxeRegisterCallBackOnSet ( EFI_STATUS
EFIAPI
DxeUnRegisterCallBackOnSet (
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN UINTN TokenNumber,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
);
@@ -780,7 +780,7 @@ DxeUnRegisterCallBackOnSet ( EFI_STATUS
EFIAPI
DxePcdGetNextToken (
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN OUT UINTN *TokenNumber
);
@@ -1018,7 +1018,7 @@ SetHiiVariable ( EFI_STATUS
DxeRegisterCallBackWorker (
IN UINTN TokenNumber,
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
);
@@ -1039,7 +1039,7 @@ DxeRegisterCallBackWorker ( EFI_STATUS
DxeUnRegisterCallBackWorker (
IN UINTN TokenNumber,
- IN CONST EFI_GUID *Guid, OPTIONAL
+ IN CONST EFI_GUID *Guid OPTIONAL,
IN PCD_PROTOCOL_CALLBACK CallBackFunction
);
@@ -1192,4 +1192,3 @@ extern UINTN TmpTokenSpaceBufferCount; extern EFI_LOCK mPcdDatabaseLock;
#endif
-
|