]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/Udp4Dxe: Fix various typos
authorAntoine Coeur <coeur@gmx.fr>
Fri, 7 Feb 2020 01:08:03 +0000 (02:08 +0100)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Mon, 10 Feb 2020 22:30:07 +0000 (22:30 +0000)
Fix various typos in comments and documentation.

Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Cc: Siyuan Fu <siyuan.fu@intel.com>
Cc: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Antoine Coeur <coeur@gmx.fr>
Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com>
Reviewed-by: Maciej Rabeda <maciej.rabeda@intel.com>
Signed-off-by: Philippe Mathieu-Daude <philmd@redhat.com>
Message-Id: <20200207010831.9046-51-philmd@redhat.com>

NetworkPkg/Udp4Dxe/Udp4Driver.c
NetworkPkg/Udp4Dxe/Udp4Driver.h
NetworkPkg/Udp4Dxe/Udp4Impl.c
NetworkPkg/Udp4Dxe/Udp4Impl.h
NetworkPkg/Udp4Dxe/Udp4Main.c

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