[edk2-devel] [PATCH 52/79] NetworkPkg/Udp4Dxe: Fix various typos

Rabeda, Maciej maciej.rabeda at intel.com
Fri Dec 6 16:02:52 UTC 2019


Reviewed-by: Maciej Rabeda <maciej.rabeda at intel.com>

Thanks!
Maciej

-----Original Message-----
From: Philippe Mathieu-Daude <philmd at redhat.com> 
Sent: Tuesday, December 3, 2019 17:16
To: devel at edk2.groups.io
Cc: Antoine Coeur <coeur at gmx.fr>; Wu, Jiaxin <jiaxin.wu at intel.com>; Fu, Siyuan <siyuan.fu at intel.com>; Rabeda, Maciej <maciej.rabeda at intel.com>; Philippe Mathieu-Daude <philmd at redhat.com>
Subject: [PATCH 52/79] NetworkPkg/Udp4Dxe: Fix various typos

From: Antoine Coeur <coeur at gmx.fr>

Fix various typos in comments and documentation.

Cc: Jiaxin Wu <jiaxin.wu at intel.com>
Cc: Siyuan Fu <siyuan.fu at intel.com>
Cc: Maciej Rabeda <maciej.rabeda at intel.com>
Reviewed-by: Philippe Mathieu-Daude <philmd at redhat.com>
Signed-off-by: Philippe Mathieu-Daude <philmd at redhat.com>
---
 NetworkPkg/Udp4Dxe/Udp4Driver.h |  4 ++--
 NetworkPkg/Udp4Dxe/Udp4Impl.h   |  4 ++--
 NetworkPkg/Udp4Dxe/Udp4Driver.c |  4 ++--
 NetworkPkg/Udp4Dxe/Udp4Impl.c   | 12 ++++++------
 NetworkPkg/Udp4Dxe/Udp4Main.c   |  4 ++--
 5 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/NetworkPkg/Udp4Dxe/Udp4Driver.h b/NetworkPkg/Udp4Dxe/Udp4Driver.h index 4e9a0c73565a..741c839d57df 100644
--- a/NetworkPkg/Udp4Dxe/Udp4Driver.h
+++ b/NetworkPkg/Udp4Dxe/Udp4Driver.h
@@ -105,7 +105,7 @@ Udp4DriverBindingStop (
                          then a new handle is created. If it is a pointer to an existing UEFI handle,
                          then the protocol is added to the existing UEFI handle.
 
-  @retval EFI_SUCCES            The protocol was added to ChildHandle.
+  @retval EFI_SUCCESS           The protocol was added to ChildHandle.
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources available to create
                                 the child @@ -129,7 +129,7 @@ Udp4ServiceBindingCreateChild (
   @param[in] This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
   @param[in] ChildHandle Handle of the child to destroy
 
-  @retval EFI_SUCCES            The protocol was removed from ChildHandle.
+  @retval EFI_SUCCESS           The protocol was removed from ChildHandle.
   @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.
   @retval EFI_INVALID_PARAMETER Child handle is NULL.
   @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle
diff --git a/NetworkPkg/Udp4Dxe/Udp4Impl.h b/NetworkPkg/Udp4Dxe/Udp4Impl.h index a5dd1ecabe5f..115f9ed878ac 100644
--- a/NetworkPkg/Udp4Dxe/Udp4Impl.h
+++ b/NetworkPkg/Udp4Dxe/Udp4Impl.h
@@ -440,7 +440,7 @@ Udp4CleanService (
   );
 
 /**
-  This function intializes the new created udp instance.
+  This function initializes the new created udp instance.
 
   @param[in]      Udp4Service       Pointer to the UDP4_SERVICE_DATA.
   @param[in, out] Instance          Pointer to the un-initialized UDP4_INSTANCE_DATA.
@@ -574,7 +574,7 @@ Udp4TokenExist (
   pseudo HeadSum to reduce some overhead.
 
   @param[in]  Packet             Pointer to the NET_BUF contains the udp datagram.
-  @param[in]  HeadSum            Checksum of the pseudo header execpt the length
+  @param[in]  HeadSum            Checksum of the pseudo header except the length
                                  field.
 
   @retval The 16-bit checksum of this udp datagram.
diff --git a/NetworkPkg/Udp4Dxe/Udp4Driver.c b/NetworkPkg/Udp4Dxe/Udp4Driver.c index 63b103b8efcc..44032682e2b8 100644
--- a/NetworkPkg/Udp4Dxe/Udp4Driver.c
+++ b/NetworkPkg/Udp4Dxe/Udp4Driver.c
@@ -286,7 +286,7 @@ Udp4DriverBindingStop (
                          then a new handle is created. If it is a pointer to an existing UEFI handle,
                          then the protocol is added to the existing UEFI handle.
 
-  @retval EFI_SUCCES            The protocol was added to ChildHandle.
+  @retval EFI_SUCCESS           The protocol was added to ChildHandle.
   @retval EFI_INVALID_PARAMETER ChildHandle is NULL.
   @retval EFI_OUT_OF_RESOURCES  There are not enough resources available to create
                                 the child @@ -421,7 +421,7 @@ ON_ERROR:
   @param[in] This        Pointer to the EFI_SERVICE_BINDING_PROTOCOL instance.
   @param[in] ChildHandle Handle of the child to destroy
 
-  @retval EFI_SUCCES            The protocol was removed from ChildHandle.
+  @retval EFI_SUCCESS           The protocol was removed from ChildHandle.
   @retval EFI_UNSUPPORTED       ChildHandle does not support the protocol that is being removed.
   @retval EFI_INVALID_PARAMETER Child handle is NULL.
   @retval EFI_ACCESS_DENIED     The protocol could not be removed from the ChildHandle
diff --git a/NetworkPkg/Udp4Dxe/Udp4Impl.c b/NetworkPkg/Udp4Dxe/Udp4Impl.c index fb1951fb1357..dc2a324c1181 100644
--- a/NetworkPkg/Udp4Dxe/Udp4Impl.c
+++ b/NetworkPkg/Udp4Dxe/Udp4Impl.c
@@ -119,7 +119,7 @@ Udp4CancelTokens (
   @param[in]  Udp4Session        Pointer to the EFI_UDP4_SESSION_DATA abstracted
                                  from the received udp datagram.
 
-  @retval TRUE       The udp datagram matches the receiving requirments of the
+  @retval TRUE       The udp datagram matches the receiving requirements of the
                      udp Instance.
   @retval FALSE      Otherwise.
 
@@ -439,7 +439,7 @@ Udp4CheckTimeout (
 
 
 /**
-  This function intializes the new created udp instance.
+  This function initializes the new created udp instance.
 
   @param[in]      Udp4Service       Pointer to the UDP4_SERVICE_DATA.
   @param[in, out] Instance          Pointer to the un-initialized UDP4_INSTANCE_DATA.
@@ -851,7 +851,7 @@ Udp4ValidateTxToken (
 
     if ((UdpSessionData->DestinationPort == 0) && (ConfigData->RemotePort == 0)) {
       //
-      // Ambiguous, no avalaible DestinationPort for this token.
+      // Ambiguous, no available DestinationPort for this token.
       //
       return EFI_INVALID_PARAMETER;
     }
@@ -864,7 +864,7 @@ Udp4ValidateTxToken (
     }
   } else if (EFI_IP4_EQUAL (&ConfigData->RemoteAddress, &mZeroIp4Addr)) {
     //
-    // the configured RemoteAddress is all zero, and the user doens't override the
+    // the configured RemoteAddress is all zero, and the user doesn't 
+ override the
     // destination address.
     //
     return EFI_INVALID_PARAMETER;
@@ -922,7 +922,7 @@ Udp4TokenExist (
   pseudo HeadSum to reduce some overhead.
 
   @param[in]  Packet             Pointer to the NET_BUF contains the udp datagram.
-  @param[in]  HeadSum            Checksum of the pseudo header execpt the length
+  @param[in]  HeadSum            Checksum of the pseudo header except the length
                                  field.
 
   @retval The 16-bit checksum of this udp datagram.
@@ -1264,7 +1264,7 @@ Udp4InstanceCancelToken (
   @param[in]  Udp4Session        Pointer to the EFI_UDP4_SESSION_DATA abstracted
                                  from the received udp datagram.
 
-  @retval TRUE       The udp datagram matches the receiving requirments of the
+  @retval TRUE       The udp datagram matches the receiving requirements of the
                      udp Instance.
   @retval FALSE      Otherwise.
 
diff --git a/NetworkPkg/Udp4Dxe/Udp4Main.c b/NetworkPkg/Udp4Dxe/Udp4Main.c index aa1956cd4b42..2a639f954726 100644
--- a/NetworkPkg/Udp4Dxe/Udp4Main.c
+++ b/NetworkPkg/Udp4Dxe/Udp4Main.c
@@ -367,7 +367,7 @@ Udp4Groups (
   // Keep a local copy of the configured multicast IPs because IpIo receives
   // datagrams from the 0 station address IP instance and then UDP delivers to
   // the matched instance. This copy of multicast IPs is used to avoid receive
-  // the mutlicast datagrams destined to multicast IPs the other instances configured.
+  // the multicast datagrams destined to multicast IPs the other instances configured.
   //
   if (JoinFlag) {
 
@@ -844,7 +844,7 @@ Udp4Cancel (
   OldTpl = gBS->RaiseTPL (TPL_CALLBACK);
 
   //
-  // Cancle the tokens specified by Token for this instance.
+  // Cancel the tokens specified by Token for this instance.
   //
   Status = Udp4InstanceCancelToken (Instance, Token);
 
--
2.21.0

--------------------------------------------------------------------

Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.

Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek
przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by
others is strictly prohibited.

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#51997): https://edk2.groups.io/g/devel/message/51997
Mute This Topic: https://groups.io/mt/67501349/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list