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/SnpDxe | |
parent | d0e2f8232a26453fc0191629ed44ff2a46ea073e (diff) | |
download | edk2-8874fa199dd7be550f20e3fc78861022eb826728.zip edk2-8874fa199dd7be550f20e3fc78861022eb826728.tar.gz edk2-8874fa199dd7be550f20e3fc78861022eb826728.tar.bz2 |
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/SnpDxe')
-rw-r--r-- | NetworkPkg/SnpDxe/Get_status.c | 2 | ||||
-rw-r--r-- | NetworkPkg/SnpDxe/Receive_filters.c | 2 | ||||
-rw-r--r-- | NetworkPkg/SnpDxe/Snp.h | 10 | ||||
-rw-r--r-- | NetworkPkg/SnpDxe/Statistics.c | 2 | ||||
-rw-r--r-- | NetworkPkg/SnpDxe/Transmit.c | 4 |
5 files changed, 10 insertions, 10 deletions
diff --git a/NetworkPkg/SnpDxe/Get_status.c b/NetworkPkg/SnpDxe/Get_status.c index e958ae2..616eb4a 100644 --- a/NetworkPkg/SnpDxe/Get_status.c +++ b/NetworkPkg/SnpDxe/Get_status.c @@ -195,7 +195,7 @@ EFI_STATUS EFIAPI
SnpUndi32GetStatus (
IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
- OUT UINT32 *InterruptStatus, OPTIONAL
+ OUT UINT32 *InterruptStatus OPTIONAL,
OUT VOID **TxBuf OPTIONAL
)
{
diff --git a/NetworkPkg/SnpDxe/Receive_filters.c b/NetworkPkg/SnpDxe/Receive_filters.c index ec18b74..4666772 100644 --- a/NetworkPkg/SnpDxe/Receive_filters.c +++ b/NetworkPkg/SnpDxe/Receive_filters.c @@ -384,7 +384,7 @@ SnpUndi32ReceiveFilters ( IN UINT32 Enable,
IN UINT32 Disable,
IN BOOLEAN ResetMCastFilter,
- IN UINTN MCastFilterCnt, OPTIONAL
+ IN UINTN MCastFilterCnt OPTIONAL,
IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL
)
{
diff --git a/NetworkPkg/SnpDxe/Snp.h b/NetworkPkg/SnpDxe/Snp.h index 66b5f94..30dd8d5 100644 --- a/NetworkPkg/SnpDxe/Snp.h +++ b/NetworkPkg/SnpDxe/Snp.h @@ -644,7 +644,7 @@ SnpUndi32ReceiveFilters ( IN UINT32 Enable,
IN UINT32 Disable,
IN BOOLEAN ResetMCastFilter,
- IN UINTN MCastFilterCnt, OPTIONAL
+ IN UINTN MCastFilterCnt OPTIONAL,
IN EFI_MAC_ADDRESS *MCastFilter OPTIONAL
);
@@ -740,7 +740,7 @@ EFIAPI SnpUndi32Statistics (
IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
IN BOOLEAN Reset,
- IN OUT UINTN *StatisticsSize, OPTIONAL
+ IN OUT UINTN *StatisticsSize OPTIONAL,
IN OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL
);
@@ -884,7 +884,7 @@ EFI_STATUS EFIAPI
SnpUndi32GetStatus (
IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
- OUT UINT32 *InterruptStatus, OPTIONAL
+ OUT UINT32 *InterruptStatus OPTIONAL,
OUT VOID **TxBuf OPTIONAL
);
@@ -949,8 +949,8 @@ SnpUndi32Transmit ( IN UINTN HeaderSize,
IN UINTN BufferSize,
IN VOID *Buffer,
- IN EFI_MAC_ADDRESS *SrcAddr, OPTIONAL
- IN EFI_MAC_ADDRESS *DestAddr, OPTIONAL
+ IN EFI_MAC_ADDRESS *SrcAddr OPTIONAL,
+ IN EFI_MAC_ADDRESS *DestAddr OPTIONAL,
IN UINT16 *Protocol OPTIONAL
);
diff --git a/NetworkPkg/SnpDxe/Statistics.c b/NetworkPkg/SnpDxe/Statistics.c index 0928eae..faeec53 100644 --- a/NetworkPkg/SnpDxe/Statistics.c +++ b/NetworkPkg/SnpDxe/Statistics.c @@ -62,7 +62,7 @@ EFIAPI SnpUndi32Statistics (
IN EFI_SIMPLE_NETWORK_PROTOCOL *This,
IN BOOLEAN Reset,
- IN OUT UINTN *StatisticsSize, OPTIONAL
+ IN OUT UINTN *StatisticsSize OPTIONAL,
IN OUT EFI_NETWORK_STATISTICS *StatisticsTable OPTIONAL
)
{
diff --git a/NetworkPkg/SnpDxe/Transmit.c b/NetworkPkg/SnpDxe/Transmit.c index 0f8d79a..3ff6b9d 100644 --- a/NetworkPkg/SnpDxe/Transmit.c +++ b/NetworkPkg/SnpDxe/Transmit.c @@ -274,8 +274,8 @@ SnpUndi32Transmit ( IN UINTN HeaderSize,
IN UINTN BufferSize,
IN VOID *Buffer,
- IN EFI_MAC_ADDRESS *SrcAddr, OPTIONAL
- IN EFI_MAC_ADDRESS *DestAddr, OPTIONAL
+ IN EFI_MAC_ADDRESS *SrcAddr OPTIONAL,
+ IN EFI_MAC_ADDRESS *DestAddr OPTIONAL,
IN UINT16 *Protocol OPTIONAL
)
{
|