mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-27 07:34:06 +02:00
Vlv2TbltDevicePkg: fix ASSERT_EFI_ERROR() typos
A number of code locations use ASSERT_EFI_ERROR (BooleanExpression) instead of ASSERT (BooleanExpression) Fix them. Cc: David Wei <david.wei@intel.com> Cc: Tim He <tim.he@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: David Wei <david.wei@intel.com>
This commit is contained in:
parent
ef3e20e3ca
commit
2bfd84ed45
@ -154,7 +154,7 @@ FvbGetVolumeAttributes (
|
|||||||
{
|
{
|
||||||
EFI_FW_VOL_INSTANCE * FwInstance = NULL;
|
EFI_FW_VOL_INSTANCE * FwInstance = NULL;
|
||||||
FwInstance = GetFvbInstance(Instance);
|
FwInstance = GetFvbInstance(Instance);
|
||||||
ASSERT_EFI_ERROR (FwInstance != NULL);
|
ASSERT (FwInstance != NULL);
|
||||||
|
|
||||||
if ( FwInstance != NULL ) {
|
if ( FwInstance != NULL ) {
|
||||||
return FwInstance->VolumeHeader.Attributes;
|
return FwInstance->VolumeHeader.Attributes;
|
||||||
@ -208,7 +208,7 @@ FvbGetLbaAddress (
|
|||||||
StartLba = 0;
|
StartLba = 0;
|
||||||
Offset = 0;
|
Offset = 0;
|
||||||
BlockMap = &(FwhInstance->VolumeHeader.BlockMap[0]);
|
BlockMap = &(FwhInstance->VolumeHeader.BlockMap[0]);
|
||||||
ASSERT_EFI_ERROR (BlockMap != NULL);
|
ASSERT (BlockMap != NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Parse the blockmap of the FV to find which map entry the Lba belongs to.
|
// Parse the blockmap of the FV to find which map entry the Lba belongs to.
|
||||||
@ -512,7 +512,7 @@ FvbSetVolumeAttributes (
|
|||||||
FwhInstance = GetFvbInstance (Instance);
|
FwhInstance = GetFvbInstance (Instance);
|
||||||
|
|
||||||
AttribPtr = (EFI_FVB_ATTRIBUTES_2 *) & (FwhInstance->VolumeHeader.Attributes);
|
AttribPtr = (EFI_FVB_ATTRIBUTES_2 *) & (FwhInstance->VolumeHeader.Attributes);
|
||||||
ASSERT_EFI_ERROR (AttribPtr != NULL);
|
ASSERT (AttribPtr != NULL);
|
||||||
|
|
||||||
if ( AttribPtr != NULL) {
|
if ( AttribPtr != NULL) {
|
||||||
OldAttributes = *AttribPtr;
|
OldAttributes = *AttribPtr;
|
||||||
|
@ -69,10 +69,10 @@ ConfigureClockGenerator (
|
|||||||
//
|
//
|
||||||
// Verify input arguments
|
// Verify input arguments
|
||||||
//
|
//
|
||||||
ASSERT_EFI_ERROR (ConfigurationTableLength >= 6);
|
ASSERT (ConfigurationTableLength >= 6);
|
||||||
ASSERT_EFI_ERROR (ConfigurationTableLength <= MAX_CLOCK_GENERATOR_BUFFER_LENGTH);
|
ASSERT (ConfigurationTableLength <= MAX_CLOCK_GENERATOR_BUFFER_LENGTH);
|
||||||
ASSERT_EFI_ERROR (ClockType < ClockGeneratorMax);
|
ASSERT (ClockType < ClockGeneratorMax);
|
||||||
ASSERT_EFI_ERROR (ConfigurationTable != NULL);
|
ASSERT (ConfigurationTable != NULL);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Read the clock generator
|
// Read the clock generator
|
||||||
|
@ -49,7 +49,7 @@ GetPlatformInfoHob (
|
|||||||
//
|
//
|
||||||
// PlatformInfo PEIM should provide this HOB data, if not ASSERT and return error.
|
// PlatformInfo PEIM should provide this HOB data, if not ASSERT and return error.
|
||||||
//
|
//
|
||||||
ASSERT_EFI_ERROR (*PlatformInfoHob != NULL);
|
ASSERT (*PlatformInfoHob != NULL);
|
||||||
if (!(*PlatformInfoHob)) {
|
if (!(*PlatformInfoHob)) {
|
||||||
return EFI_NOT_FOUND;
|
return EFI_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user