]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Udp6Dxe/Udp6Driver.c
NetworkPkg/IScsiDxe: Fix the incorrect error handling in DriverEntryPoint
[mirror_edk2.git] / NetworkPkg / Udp6Dxe / Udp6Driver.c
index 62c2b9affd0fb5c3f3b00dca2b61a99b1c7011ad..a4b1104d2b87dc2beab429a74549232fd279a16e 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Driver Binding functions and Service Binding functions for the Network driver module.\r
 \r
-  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2016, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -165,8 +165,6 @@ Udp6DriverBindingStart (
   if (EFI_ERROR (Status)) {\r
     Udp6CleanService (Udp6Service);\r
     goto EXIT;\r
-  } else {\r
-    Status = Udp6SetVariableData (Udp6Service);\r
   }\r
 \r
 EXIT:\r
@@ -189,10 +187,11 @@ EXIT:
 \r
 **/\r
 EFI_STATUS\r
+EFIAPI\r
 Udp6DestroyChildEntryInHandleBuffer (\r
   IN LIST_ENTRY         *Entry,\r
   IN VOID               *Context\r
-)\r
+  )\r
 {\r
   UDP6_INSTANCE_DATA            *Instance;\r
   EFI_SERVICE_BINDING_PROTOCOL  *ServiceBinding;\r
@@ -297,9 +296,7 @@ Udp6DriverBindingStop (
            &Udp6Service->ServiceBinding,\r
            NULL\r
            );\r
-\r
-    Udp6ClearVariableData (Udp6Service);\r
-\r
\r
     Udp6CleanService (Udp6Service);\r
 \r
     FreePool (Udp6Service);\r
@@ -324,7 +321,7 @@ Udp6DriverBindingStop (
 \r
   @retval EFI_SUCCES            The protocol was added to ChildHandle.\r
   @retval EFI_INVALID_PARAMETER This is NULL or 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