summaryrefslogtreecommitdiffstats
path: root/NetworkPkg/SnpDxe
diff options
context:
space:
mode:
authorMichael D Kinney <michael.d.kinney@intel.com>2021-12-02 18:00:52 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-12-07 17:24:28 +0000
commit8874fa199dd7be550f20e3fc78861022eb826728 (patch)
tree7bc82e88d9d55781093dd4306e159cd499e84d88 /NetworkPkg/SnpDxe
parentd0e2f8232a26453fc0191629ed44ff2a46ea073e (diff)
downloadedk2-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/SnpDxe')
-rw-r--r--NetworkPkg/SnpDxe/Get_status.c2
-rw-r--r--NetworkPkg/SnpDxe/Receive_filters.c2
-rw-r--r--NetworkPkg/SnpDxe/Snp.h10
-rw-r--r--NetworkPkg/SnpDxe/Statistics.c2
-rw-r--r--NetworkPkg/SnpDxe/Transmit.c4
5 files changed, 10 insertions, 10 deletions
diff --git a/NetworkPkg/SnpDxe/Get_status.c b/NetworkPkg/SnpDxe/Get_status.c
index e958ae2575..616eb4aa6a 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 ec18b74b35..4666772a2d 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 66b5f948e2..30dd8d5f26 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 0928eae1c4..faeec536fc 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 0f8d79ac7e..3ff6b9d167 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
)
{