]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/Ip6Dxe/Ip6Driver.c
DynamicTablesPkg: Add EDK2 Core CI support
[mirror_edk2.git] / NetworkPkg / Ip6Dxe / Ip6Driver.c
index 7a96315ccf93fc24841cdaecb48372513be4f01c..7c13d6a3d4cc9d1b1fc2041180e7a62e3dbc88c7 100644 (file)
@@ -4,13 +4,7 @@
   Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR>\r
   (C) Copyright 2015 Hewlett-Packard Development Company, L.P.<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
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php.\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -504,7 +498,7 @@ ON_ERROR:
   @param[in]  RemainingDevicePath Optional parameter used to pick a specific child\r
                                   device to start.\r
 \r
-  @retval EFI_SUCCES              This driver is added to ControllerHandle.\r
+  @retval EFI_SUCCESS             This driver is added to ControllerHandle.\r
   @retval EFI_ALREADY_STARTED     This driver is already running on ControllerHandle.\r
   @retval other                   This driver does not support this device.\r
 \r
@@ -553,7 +547,7 @@ Ip6DriverBindingStart (
   Ip6Cfg  = &IpSb->Ip6ConfigInstance.Ip6Config;\r
 \r
   //\r
-  // Install the Ip6ServiceBinding Protocol onto ControlerHandle\r
+  // Install the Ip6ServiceBinding Protocol onto ControllerHandle\r
   //\r
   Status = gBS->InstallMultipleProtocolInterfaces (\r
                   &ControllerHandle,\r
@@ -829,7 +823,7 @@ Exit:
                                  is not NULL, then the I/O services are added to\r
                                  the existing child handle.\r
 \r
-  @retval EFI_SUCCES             The child handle was created with the I/O services.\r
+  @retval EFI_SUCCESS            The child handle was created with the I/O services.\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
@@ -894,7 +888,7 @@ Ip6ServiceBindingCreateChild (
                   );\r
   if (EFI_ERROR (Status)) {\r
     gBS->UninstallMultipleProtocolInterfaces (\r
-           ChildHandle,\r
+           *ChildHandle,\r
            &gEfiIp6ProtocolGuid,\r
            &IpInstance->Ip6Proto,\r
            NULL\r
@@ -931,7 +925,7 @@ ON_ERROR:
   @param[in]  This               Protocol instance pointer.\r
   @param[in]  ChildHandle        Handle of the child to destroy.\r
 \r
-  @retval EFI_SUCCES             The I/O services were removed from the child\r
+  @retval EFI_SUCCESS            The I/O services were removed from the child\r
                                  handle.\r
   @retval EFI_UNSUPPORTED        The child handle does not support the I/O services\r
                                   that are being removed.\r
@@ -1011,14 +1005,14 @@ Ip6ServiceBindingDestroyChild (
   // Uninstall the IP6 protocol first. Many thing happens during\r
   // this:\r
   // 1. The consumer of the IP6 protocol will be stopped if it\r
-  // opens the protocol BY_DRIVER. For eaxmple, if MNP driver is\r
+  // opens the protocol BY_DRIVER. For example, if MNP driver is\r
   // stopped, IP driver's stop function will be called, and uninstall\r
   // EFI_IP6_PROTOCOL will trigger the UDP's stop function. This\r
   // makes it possible to create the network stack bottom up, and\r
   // stop it top down.\r
   // 2. the upper layer will recycle the received packet. The recycle\r
   // event's TPL is higher than this function. The recycle events\r
-  // will be called back before preceeding. If any packets not recycled,\r
+  // will be called back before preceding. If any packets not recycled,\r
   // that means there is a resource leak.\r
   //\r
   gBS->RestoreTPL (OldTpl);\r