]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Library/DxeNetLib/NetBuffer.c
BaseTools:Change the path of the file that Binary Cache
[mirror_edk2.git] / MdeModulePkg / Library / DxeNetLib / NetBuffer.c
index d0e2b9f2a886043c5332816615ede4258b880efb..2408e9a10456e97d1427bcad71f938769e017c49 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
   Network library functions providing net buffer operation support.\r
 \r
-Copyright (c) 2005 - 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
-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
+Copyright (c) 2005 - 2018, Intel Corporation. All rights reserved.<BR>\r
+SPDX-License-Identifier: BSD-2-Clause-Patent\r
 **/\r
 \r
 #include <Uefi.h>\r
@@ -1847,11 +1841,11 @@ NetIp6PseudoHeadChecksum (
 }\r
 \r
 /**\r
-  The function frees the net buffer which allocated by the IP protocol. It releases \r
-  only the net buffer and doesn't call the external free function. \r
+  The function frees the net buffer which allocated by the IP protocol. It releases\r
+  only the net buffer and doesn't call the external free function.\r
 \r
-  This function should be called after finishing the process of mIpSec->ProcessExt() \r
-  for outbound traffic. The (EFI_IPSEC2_PROTOCOL)->ProcessExt() allocates a new \r
+  This function should be called after finishing the process of mIpSec->ProcessExt()\r
+  for outbound traffic. The (EFI_IPSEC2_PROTOCOL)->ProcessExt() allocates a new\r
   buffer for the ESP, so there needs a function to free the old net buffer.\r
 \r
   @param[in]  Nbuf       The network buffer to be freed.\r
@@ -1868,7 +1862,7 @@ NetIpSecNetbufFree (
   Nbuf->RefCnt--;\r
 \r
   if (Nbuf->RefCnt == 0) {\r
-    \r
+\r
     //\r
     // Update Vector only when NBuf is to be released. That is,\r
     // all the sharing of Nbuf increse Vector's RefCnt by one\r
@@ -1883,14 +1877,14 @@ NetIpSecNetbufFree (
     }\r
 \r
     //\r
-    // If NET_VECTOR_OWN_FIRST is set, release the first block since it is \r
+    // If NET_VECTOR_OWN_FIRST is set, release the first block since it is\r
     // allocated by us\r
     //\r
     if ((Nbuf->Vector->Flag & NET_VECTOR_OWN_FIRST) != 0) {\r
       FreePool (Nbuf->Vector->Block[0].Bulk);\r
     }\r
     FreePool (Nbuf->Vector);\r
-    FreePool (Nbuf); \r
-  } \r
+    FreePool (Nbuf);\r
+  }\r
 }\r
 \r