]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/C/Common/PcdValueCommon.c
BaseTools: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / BaseTools / Source / C / Common / PcdValueCommon.c
index 210f87b8b594ffaaab18152bf4444738cd735f43..42e35817071069cfd2c57eb9e796b5901a748271 100644 (file)
@@ -3,13 +3,7 @@ This file contains the PcdValue structure definition.
 \r
 Copyright (c) 2017 - 2018, 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
-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
@@ -312,7 +306,6 @@ Returns:
   CHAR8   *Value;\r
   UINT8   *Buffer;\r
   CHAR8   *End;\r
-  UINT8   Byte;\r
 \r
   Index = LookupPcdIndex (SkuName, DefaultValueName, TokenSpaceGuidName, TokenName);\r
   if (Index < 0) {\r
@@ -330,7 +323,7 @@ Returns:
     break;\r
   case PcdDataTypePointer:\r
     Value = &PcdList[Index].Value[1];\r
-    for (*Size = 0, Byte = (UINT8) strtoul(Value, &End, 16); Value != End; Byte = (UINT8) strtoul(Value, &End, 16), *Size = *Size + 1) {\r
+    for (*Size = 0, strtoul(Value, &End, 16); Value != End; strtoul(Value, &End, 16), *Size = *Size + 1) {\r
       Value = End + 1;\r
     }\r
     Buffer = malloc(*Size + 1);\r
@@ -716,7 +709,7 @@ Returns:
   }\r
 \r
   //\r
-  // Check Input paramters\r
+  // Check Input parameters\r
   //\r
   if (*InputFileName == NULL) {\r
     fprintf (stderr, "Missing option.  Input files is not specified\n");\r