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: David Wei <david.wei@intel.com>
Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
{\r
EFI_FW_VOL_INSTANCE * FwInstance = NULL;\r
FwInstance = GetFvbInstance(Instance);\r
{\r
EFI_FW_VOL_INSTANCE * FwInstance = NULL;\r
FwInstance = GetFvbInstance(Instance);\r
- ASSERT_EFI_ERROR (FwInstance != NULL);\r
+ ASSERT (FwInstance != NULL);\r
\r
if ( FwInstance != NULL ) {\r
return FwInstance->VolumeHeader.Attributes;\r
\r
if ( FwInstance != NULL ) {\r
return FwInstance->VolumeHeader.Attributes;\r
StartLba = 0;\r
Offset = 0;\r
BlockMap = &(FwhInstance->VolumeHeader.BlockMap[0]);\r
StartLba = 0;\r
Offset = 0;\r
BlockMap = &(FwhInstance->VolumeHeader.BlockMap[0]);\r
- ASSERT_EFI_ERROR (BlockMap != NULL);\r
+ ASSERT (BlockMap != NULL);\r
\r
//\r
// Parse the blockmap of the FV to find which map entry the Lba belongs to.\r
\r
//\r
// Parse the blockmap of the FV to find which map entry the Lba belongs to.\r
FwhInstance = GetFvbInstance (Instance);\r
\r
AttribPtr = (EFI_FVB_ATTRIBUTES_2 *) & (FwhInstance->VolumeHeader.Attributes);\r
FwhInstance = GetFvbInstance (Instance);\r
\r
AttribPtr = (EFI_FVB_ATTRIBUTES_2 *) & (FwhInstance->VolumeHeader.Attributes);\r
- ASSERT_EFI_ERROR (AttribPtr != NULL);\r
+ ASSERT (AttribPtr != NULL);\r
\r
if ( AttribPtr != NULL) {\r
OldAttributes = *AttribPtr;\r
\r
if ( AttribPtr != NULL) {\r
OldAttributes = *AttribPtr;\r
//\r
// Verify input arguments\r
//\r
//\r
// Verify input arguments\r
//\r
- ASSERT_EFI_ERROR (ConfigurationTableLength >= 6);\r
- ASSERT_EFI_ERROR (ConfigurationTableLength <= MAX_CLOCK_GENERATOR_BUFFER_LENGTH);\r
- ASSERT_EFI_ERROR (ClockType < ClockGeneratorMax);\r
- ASSERT_EFI_ERROR (ConfigurationTable != NULL);\r
+ ASSERT (ConfigurationTableLength >= 6);\r
+ ASSERT (ConfigurationTableLength <= MAX_CLOCK_GENERATOR_BUFFER_LENGTH);\r
+ ASSERT (ClockType < ClockGeneratorMax);\r
+ ASSERT (ConfigurationTable != NULL);\r
\r
//\r
// Read the clock generator\r
\r
//\r
// Read the clock generator\r
//\r
// PlatformInfo PEIM should provide this HOB data, if not ASSERT and return error.\r
//\r
//\r
// PlatformInfo PEIM should provide this HOB data, if not ASSERT and return error.\r
//\r
- ASSERT_EFI_ERROR (*PlatformInfoHob != NULL);\r
+ ASSERT (*PlatformInfoHob != NULL);\r
if (!(*PlatformInfoHob)) {\r
return EFI_NOT_FOUND;\r
}\r
if (!(*PlatformInfoHob)) {\r
return EFI_NOT_FOUND;\r
}\r