*EnBootOptionCount = 0;\r
Index = 0;\r
\r
+ ASSERT (BbsIndexArray != NULL);\r
+ ASSERT (DeviceTypeArray != NULL);\r
ASSERT (*EnBootOption != NULL);\r
ASSERT (*DisBootOption != NULL);\r
\r
UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", BootOrder[Index]);\r
InitializeListHead (&List);\r
BootOption = BdsLibVariableToOption (&List, OptionName);\r
- ASSERT_EFI_ERROR (BootOption != NULL);\r
+ ASSERT (BootOption != NULL);\r
\r
if ((DevicePathType (BootOption->DevicePath) == BBS_DEVICE_PATH) &&\r
(DevicePathSubType (BootOption->DevicePath) == BBS_BBS_DP)) {\r
//\r
StartPosition = BootOrderSize / sizeof (UINT16);\r
NewBootOption = AllocatePool (DevOrderCount * sizeof (UINT16));\r
+ ASSERT (NewBootOption != NULL);\r
while (DevOrderCount-- != 0) {\r
for (Index = 0; Index < BootOrderSize / sizeof (UINT16); Index++) {\r
if (BbsIndexArray[Index] == (DevOrder[DevOrderCount] & 0xFF)) {\r
UnicodeSPrint (OptionName, sizeof (OptionName), L"Boot%04x", BootOrder[Index]);\r
InitializeListHead (&List);\r
BootOption = BdsLibVariableToOption (&List, OptionName);\r
- ASSERT_EFI_ERROR (BootOption != NULL);\r
+ ASSERT (BootOption != NULL);\r
\r
if ((DevicePathType (BootOption->DevicePath) == BBS_DEVICE_PATH) &&\r
(DevicePathSubType (BootOption->DevicePath) == BBS_BBS_DP)) {\r