mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 23:54:02 +02:00
QuarkPlatformPkg: fix ASSERT_EFI_ERROR() typos
A number of code locations use ASSERT_EFI_ERROR (BooleanExpression) instead of ASSERT (BooleanExpression) Fix them. Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Kelly Steele <kelly.steele@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com>
This commit is contained in:
parent
bb7a152c2c
commit
74e00be5c0
@ -680,7 +680,7 @@ AcpiPlatformEntryPoint (
|
|||||||
// Init Pci Device PRT PRW information structure from PCD
|
// Init Pci Device PRT PRW information structure from PCD
|
||||||
//
|
//
|
||||||
mConfigData = (PCI_DEVICE_SETTING *)AllocateZeroPool (sizeof (PCI_DEVICE_SETTING));
|
mConfigData = (PCI_DEVICE_SETTING *)AllocateZeroPool (sizeof (PCI_DEVICE_SETTING));
|
||||||
ASSERT_EFI_ERROR (mConfigData);
|
ASSERT (mConfigData != NULL);
|
||||||
InitPciDeviceInfoStructure (mConfigData);
|
InitPciDeviceInfoStructure (mConfigData);
|
||||||
//
|
//
|
||||||
// Get the Acpi SDT protocol for manipulation on acpi table
|
// Get the Acpi SDT protocol for manipulation on acpi table
|
||||||
|
@ -218,7 +218,7 @@ MadtTableInitialize (
|
|||||||
//ASSERT (NumberOfCPUs <= 2 && NumberOfCPUs > 0);
|
//ASSERT (NumberOfCPUs <= 2 && NumberOfCPUs > 0);
|
||||||
MadtSize = GetAcutalMadtTableSize (&MadtConfigData, NumberOfCPUs);
|
MadtSize = GetAcutalMadtTableSize (&MadtConfigData, NumberOfCPUs);
|
||||||
Madt = (EFI_ACPI_2_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER *)AllocateZeroPool (MadtSize);
|
Madt = (EFI_ACPI_2_0_MULTIPLE_APIC_DESCRIPTION_TABLE_HEADER *)AllocateZeroPool (MadtSize);
|
||||||
ASSERT_EFI_ERROR (Madt);
|
ASSERT (Madt != NULL);
|
||||||
//
|
//
|
||||||
// Initialize MADT Header information
|
// Initialize MADT Header information
|
||||||
//
|
//
|
||||||
|
@ -174,7 +174,7 @@ PlatformFlashLockConfig (
|
|||||||
//
|
//
|
||||||
|
|
||||||
SpiProtocol = LocateSpiProtocol (NULL); // This routine will not be called in SMM.
|
SpiProtocol = LocateSpiProtocol (NULL); // This routine will not be called in SMM.
|
||||||
ASSERT_EFI_ERROR (SpiProtocol != NULL);
|
ASSERT (SpiProtocol != NULL);
|
||||||
if (SpiProtocol != NULL) {
|
if (SpiProtocol != NULL) {
|
||||||
Status = SpiProtocol->Lock (SpiProtocol);
|
Status = SpiProtocol->Lock (SpiProtocol);
|
||||||
|
|
||||||
|
@ -1034,7 +1034,7 @@ InstallS3Memory (
|
|||||||
// memory above 1MB. So Memory Callback can set cache for the system memory
|
// memory above 1MB. So Memory Callback can set cache for the system memory
|
||||||
// correctly on S3 boot path, just like it does on Normal boot path.
|
// correctly on S3 boot path, just like it does on Normal boot path.
|
||||||
//
|
//
|
||||||
ASSERT_EFI_ERROR ((S3MemoryRangeData->SystemMemoryLength - 0x100000) > 0);
|
ASSERT ((S3MemoryRangeData->SystemMemoryLength - 0x100000) > 0);
|
||||||
BuildResourceDescriptorHob (
|
BuildResourceDescriptorHob (
|
||||||
EFI_RESOURCE_SYSTEM_MEMORY,
|
EFI_RESOURCE_SYSTEM_MEMORY,
|
||||||
(
|
(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user