]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiPcdLib/PeiPcdLib.c
MdePkg: Follow PI1.4a to fix artificial limitation of SkuId range
[mirror_edk2.git] / MdePkg / Library / PeiPcdLib / PeiPcdLib.c
index 53e8ad6c00175c2b261a6a8f010dba6ec4c51adc..2496701862fdb789ad25408547b2b1b63f1ce09f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Implementation of PcdLib class library for PEI phase.\r
 \r
-Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2006 - 2016, 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
@@ -124,7 +124,6 @@ GetPiPcdInfoPpiPointer (
   This function provides a means by which SKU support can be established in the PCD infrastructure.\r
 \r
   Sets the current SKU in the PCD database to the value specified by SkuId.  SkuId is returned.\r
-  If SkuId >= PCD_MAX_SKU_ID, then ASSERT(). \r
 \r
   @param  SkuId   The SKU value that will be used when the PCD service retrieves \r
                   and sets values associated with a PCD token.\r
@@ -138,9 +137,6 @@ LibPcdSetSku (
   IN UINTN   SkuId\r
   )\r
 {\r
-\r
-  ASSERT (SkuId < PCD_MAX_SKU_ID);\r
-\r
   GetPiPcdPpiPointer()->SetSku (SkuId);\r
   \r
   return SkuId;\r
@@ -1615,8 +1611,6 @@ LibPcdGetInfoEx (
 /**\r
   Retrieve the currently set SKU Id.\r
 \r
-  If the sku id got >= PCD_MAX_SKU_ID, then ASSERT().\r
-\r
   @return   The currently set SKU Id. If the platform has not set at a SKU Id, then the\r
             default SKU Id value of 0 is returned. If the platform has set a SKU Id, then the currently set SKU\r
             Id is returned.\r
@@ -1627,10 +1621,5 @@ LibPcdGetSku (
   VOID\r
   )\r
 {\r
-  UINTN SkuId;\r
-\r
-  SkuId = GetPiPcdInfoPpiPointer()->GetSku ();\r
-  ASSERT (SkuId < PCD_MAX_SKU_ID);\r
-\r
-  return SkuId;\r
+  return GetPiPcdInfoPpiPointer()->GetSku ();\r
 }\r