]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Udp4Dxe/Udp4Driver.c
MdeModulePkg: Fix typos in comments and variables
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Udp4Dxe / Udp4Driver.c
index 96b08d14e91f6c641947831025cefb368b1988b3..4d179d1b2810a8f08d1d89595aa39a0a9fb3b397 100644 (file)
@@ -1,6 +1,6 @@
 /** @file\r
 \r
-Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -39,10 +39,11 @@ EFI_SERVICE_BINDING_PROTOCOL mUdp4ServiceBinding = {
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 Udp4DestroyChildEntryInHandleBuffer (\r
   IN LIST_ENTRY         *Entry,\r
   IN VOID               *Context\r
-)\r
+  )\r
 {\r
   UDP4_INSTANCE_DATA            *Instance;\r
   EFI_SERVICE_BINDING_PROTOCOL  *ServiceBinding;\r
@@ -180,8 +181,6 @@ Udp4DriverBindingStart (
   if (EFI_ERROR (Status)) {\r
     Udp4CleanService (Udp4Service);\r
     FreePool (Udp4Service);\r
-  } else {\r
-    Udp4SetVariableData (Udp4Service);\r
   }\r
 \r
   return Status;\r
@@ -267,9 +266,7 @@ Udp4DriverBindingStop (
            &Udp4Service->ServiceBinding,\r
            NULL\r
            );\r
-\r
-    Udp4ClearVariableData (Udp4Service);\r
-\r
\r
     Udp4CleanService (Udp4Service);\r
 \r
     if (gUdpControllerNameTable != NULL) {\r
@@ -297,7 +294,7 @@ Udp4DriverBindingStop (
 \r
   @retval EFI_SUCCES            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 availabe to create\r
+  @retval EFI_OUT_OF_RESOURCES  There are not enough resources available to create\r
                                 the child\r
   @retval other                 The child handle was not created\r
 \r