Remove ASSERT when failed to Get/Set “AttemptOrder” and “ClientId” variable.
Removes RT attribute for “AttemptOrder” variable. Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Dong, Guo <guo.dong@intel.com> Reviewed-by: Yao, Jiewen <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15328 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -651,7 +651,9 @@ IScsiStart (
|
||||
&gIScsiConfigGuid,
|
||||
&AttemptConfigOrderSize
|
||||
);
|
||||
ASSERT (AttemptConfigOrder != NULL);
|
||||
if (AttemptConfigOrder == NULL) {
|
||||
goto ON_ERROR;
|
||||
}
|
||||
for (Index = 0; Index < AttemptConfigOrderSize / sizeof (UINT8); Index++) {
|
||||
if (AttemptConfigOrder[Index] == mPrivate->BootSelectedIndex ||
|
||||
AttemptConfigOrder[Index] == BootSelected) {
|
||||
@@ -689,7 +691,9 @@ IScsiStart (
|
||||
|
||||
goto ON_EXIT;
|
||||
} else {
|
||||
ASSERT (AttemptConfigOrder[Index] == BootSelected);
|
||||
if (AttemptConfigOrder[Index] != BootSelected) {
|
||||
goto ON_ERROR;
|
||||
}
|
||||
mPrivate->BootSelectedIndex = BootSelected;
|
||||
//
|
||||
// Clear the resource in ExistPrivate.
|
||||
|
Reference in New Issue
Block a user