]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Udp6Dxe/Udp6Driver.c
NetworkPkg: Stop and release DHCP4 child after boot info is ready
[mirror_edk2.git] / NetworkPkg / Udp6Dxe / Udp6Driver.c
index 62c2b9affd0fb5c3f3b00dca2b61a99b1c7011ad..da2093962a2b51cb234dd034b760cff6aa9003d4 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 - 2014, 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