summaryrefslogtreecommitdiff
path: root/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
diff options
context:
space:
mode:
authorniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2012-06-01 03:39:39 +0000
committerniruiyu <niruiyu@6f19259b-4bc3-4df7-8a09-765794883524>2012-06-01 03:39:39 +0000
commit16e5944abde9ea3f01c9ccff2a86a41e5a6a1dd0 (patch)
tree7cc5e5a08187212a83be8953ea9bbf2b7227d104 /IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
parent38fcd0270fff574ac82e2acad451fbcb36674398 (diff)
downloadedk2-platforms-16e5944abde9ea3f01c9ccff2a86a41e5a6a1dd0.tar.xz
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
Diffstat (limited to 'IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c')
-rw-r--r--IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
index 5841756c43..3d1ccf9dc2 100644
--- a/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
+++ b/IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
@@ -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;
}
/**