diff --git a/MdeModulePkg/Universal/PCD/Dxe/Service.c b/MdeModulePkg/Universal/PCD/Dxe/Service.c index 2745cf54d6..1e487f04c3 100644 --- a/MdeModulePkg/Universal/PCD/Dxe/Service.c +++ b/MdeModulePkg/Universal/PCD/Dxe/Service.c @@ -788,7 +788,7 @@ UpdatePcdDatabase ( SkuDelta = NULL; while (Index < mPeiPcdDbSize) { SkuDelta = (PCD_DATABASE_SKU_DELTA *) ((UINT8 *) mPeiPcdDbBinary + Index); - if (SkuDelta->SkuId == (UINT16) SkuId && SkuDelta->SkuIdCompared == 0) { + if (SkuDelta->SkuId == SkuId && SkuDelta->SkuIdCompared == 0) { break; } Index = (Index + SkuDelta->Length + 7) & (~7);