]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/DnsDxe/DnsDriver.c
IntelSiliconPkg IntelVTdDxe: Support early SetAttributes()
[mirror_edk2.git] / NetworkPkg / DnsDxe / DnsDriver.c
index 6ca8aa7bddf96969987bd966878a9a63c561a09c..5dc9afe4489175eb7947441c604a9a47518c8377 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 The driver binding and service binding protocol for DnsDxe driver.\r
 \r
-Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2015 - 2017, 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
@@ -279,18 +279,16 @@ DnsCreateService (
   // Create the timer used to time out the procedure which is used to\r
   // get the default IP address.\r
   //\r
-  if (DnsSb->IpVersion == IP_VERSION_4) {\r
-    Status = gBS->CreateEvent (\r
-                    EVT_TIMER,\r
-                    TPL_CALLBACK,\r
-                    NULL,\r
-                    NULL,\r
-                    &DnsSb->TimerToGetMap\r
-                    );\r
-    if (EFI_ERROR (Status)) {\r
-      FreePool (DnsSb);\r
-      return Status;\r
-    }\r
+  Status = gBS->CreateEvent (\r
+                  EVT_TIMER,\r
+                  TPL_CALLBACK,\r
+                  NULL,\r
+                  NULL,\r
+                  &DnsSb->TimerToGetMap\r
+                  );\r
+  if (EFI_ERROR (Status)) {\r
+    FreePool (DnsSb);\r
+    return Status;\r
   }\r
   \r
   //\r
@@ -1081,7 +1079,7 @@ Dns6DriverBindingStop (
 \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
@@ -1324,7 +1322,7 @@ Dns4ServiceBindingDestroyChild (
 \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