mirror of https://github.com/acidanthera/audk.git
MdePkg PeiServicesLib: Refine the code to avoid error report.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14769 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
dc84077317
commit
ed84519ce8
|
@ -624,12 +624,14 @@ InternalPeiServicesInstallFvInfoPpi (
|
|||
// To install FvInfo Ppi.
|
||||
//
|
||||
FvInfoPpi = AllocateZeroPool (sizeof (EFI_PEI_FIRMWARE_VOLUME_INFO_PPI));
|
||||
ASSERT (FvInfoPpi != NULL);
|
||||
PpiGuid = &gEfiPeiFirmwareVolumeInfoPpiGuid;
|
||||
} else {
|
||||
//
|
||||
// To install FvInfo2 Ppi.
|
||||
//
|
||||
FvInfoPpi = AllocateZeroPool (sizeof (EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI));
|
||||
ASSERT (FvInfoPpi != NULL);
|
||||
((EFI_PEI_FIRMWARE_VOLUME_INFO2_PPI *) FvInfoPpi)->AuthenticationStatus = AuthenticationStatus;
|
||||
PpiGuid = &gEfiPeiFirmwareVolumeInfo2PpiGuid;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue