diff options
author | Michael D Kinney <michael.d.kinney@intel.com> | 2021-12-02 18:00:52 -0800 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-12-07 17:24:28 +0000 |
commit | 8874fa199dd7be550f20e3fc78861022eb826728 (patch) | |
tree | 7bc82e88d9d55781093dd4306e159cd499e84d88 /NetworkPkg/TlsDxe | |
parent | d0e2f8232a26453fc0191629ed44ff2a46ea073e (diff) | |
download | edk2-8874fa199dd7be550f20e3fc78861022eb826728.tar.gz edk2-8874fa199dd7be550f20e3fc78861022eb826728.tar.bz2 edk2-8874fa199dd7be550f20e3fc78861022eb826728.zip |
NetworkPkg: 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: Maciej Rabeda <maciej.rabeda@linux.intel.com>
Diffstat (limited to 'NetworkPkg/TlsDxe')
-rw-r--r-- | NetworkPkg/TlsDxe/TlsConfigProtocol.c | 3 | ||||
-rw-r--r-- | NetworkPkg/TlsDxe/TlsImpl.h | 11 | ||||
-rw-r--r-- | NetworkPkg/TlsDxe/TlsProtocol.c | 9 |
3 files changed, 10 insertions, 13 deletions
diff --git a/NetworkPkg/TlsDxe/TlsConfigProtocol.c b/NetworkPkg/TlsDxe/TlsConfigProtocol.c index b01e4cdeec..344d8de217 100644 --- a/NetworkPkg/TlsDxe/TlsConfigProtocol.c +++ b/NetworkPkg/TlsDxe/TlsConfigProtocol.c @@ -105,7 +105,7 @@ EFIAPI TlsConfigurationGetData (
IN EFI_TLS_CONFIGURATION_PROTOCOL *This,
IN EFI_TLS_CONFIG_DATA_TYPE DataType,
- IN OUT VOID *Data, OPTIONAL
+ IN OUT VOID *Data OPTIONAL,
IN OUT UINTN *DataSize
)
{
@@ -144,4 +144,3 @@ TlsConfigurationGetData ( gBS->RestoreTPL (OldTpl);
return Status;
}
-
diff --git a/NetworkPkg/TlsDxe/TlsImpl.h b/NetworkPkg/TlsDxe/TlsImpl.h index ce9f1e8b8f..391f86ef60 100644 --- a/NetworkPkg/TlsDxe/TlsImpl.h +++ b/NetworkPkg/TlsDxe/TlsImpl.h @@ -148,7 +148,7 @@ EFIAPI TlsGetSessionData (
IN EFI_TLS_PROTOCOL *This,
IN EFI_TLS_SESSION_DATA_TYPE DataType,
- IN OUT VOID *Data, OPTIONAL
+ IN OUT VOID *Data OPTIONAL,
IN OUT UINTN *DataSize
);
@@ -194,9 +194,9 @@ EFI_STATUS EFIAPI
TlsBuildResponsePacket (
IN EFI_TLS_PROTOCOL *This,
- IN UINT8 *RequestBuffer, OPTIONAL
- IN UINTN RequestSize, OPTIONAL
- OUT UINT8 *Buffer, OPTIONAL
+ IN UINT8 *RequestBuffer OPTIONAL,
+ IN UINTN RequestSize OPTIONAL,
+ OUT UINT8 *Buffer OPTIONAL,
IN OUT UINTN *BufferSize
);
@@ -298,9 +298,8 @@ EFIAPI TlsConfigurationGetData (
IN EFI_TLS_CONFIGURATION_PROTOCOL *This,
IN EFI_TLS_CONFIG_DATA_TYPE DataType,
- IN OUT VOID *Data, OPTIONAL
+ IN OUT VOID *Data OPTIONAL,
IN OUT UINTN *DataSize
);
#endif
-
diff --git a/NetworkPkg/TlsDxe/TlsProtocol.c b/NetworkPkg/TlsDxe/TlsProtocol.c index 001e5400d0..b814de5b35 100644 --- a/NetworkPkg/TlsDxe/TlsProtocol.c +++ b/NetworkPkg/TlsDxe/TlsProtocol.c @@ -259,7 +259,7 @@ EFIAPI TlsGetSessionData (
IN EFI_TLS_PROTOCOL *This,
IN EFI_TLS_SESSION_DATA_TYPE DataType,
- IN OUT VOID *Data, OPTIONAL
+ IN OUT VOID *Data OPTIONAL,
IN OUT UINTN *DataSize
)
{
@@ -444,9 +444,9 @@ EFI_STATUS EFIAPI
TlsBuildResponsePacket (
IN EFI_TLS_PROTOCOL *This,
- IN UINT8 *RequestBuffer, OPTIONAL
- IN UINTN RequestSize, OPTIONAL
- OUT UINT8 *Buffer, OPTIONAL
+ IN UINT8 *RequestBuffer OPTIONAL,
+ IN UINTN RequestSize OPTIONAL,
+ OUT UINT8 *Buffer OPTIONAL,
IN OUT UINTN *BufferSize
)
{
@@ -673,4 +673,3 @@ ON_EXIT: gBS->RestoreTPL (OldTpl);
return Status;
}
-
|