Refine BdsDxe driver and GenericBdsLib library so that the GenericBdsLib doesn't depend on the BdsDxe implementation.
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13418 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -701,21 +701,9 @@ BdsLibVariableToOption (
|
||||
+ (UINT16) (CharToUint (VariableName[NumOff+2]) * 0x10)
|
||||
+ (UINT16) (CharToUint (VariableName[NumOff+3]) * 0x1);
|
||||
}
|
||||
//
|
||||
// Insert active entry to BdsDeviceList
|
||||
//
|
||||
if ((Option->Attribute & LOAD_OPTION_ACTIVE) == LOAD_OPTION_ACTIVE) {
|
||||
InsertTailList (BdsCommonOptionList, &Option->Link);
|
||||
FreePool (Variable);
|
||||
return Option;
|
||||
}
|
||||
|
||||
InsertTailList (BdsCommonOptionList, &Option->Link);
|
||||
FreePool (Variable);
|
||||
FreePool (Option->Description);
|
||||
FreePool (Option->DevicePath);
|
||||
FreePool (Option->LoadOptions);
|
||||
FreePool (Option);
|
||||
return NULL;
|
||||
return Option;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user