]> git.proxmox.com Git - mirror_edk2.git/blobdiff - IntelFrameworkModulePkg/Library/GenericBdsLib/BdsMisc.c
Refine BdsDxe driver and GenericBdsLib library so that the GenericBdsLib doesn't...
[mirror_edk2.git] / IntelFrameworkModulePkg / Library / GenericBdsLib / BdsMisc.c
index 5841756c4343907dcd1ad386e91c8d22a09117ab..3d1ccf9dc2c5ffd3872a85e26733d01696742c39 100644 (file)
@@ -701,21 +701,9 @@ BdsLibVariableToOption (
                + (UINT16) (CharToUint (VariableName[NumOff+2]) * 0x10)\r
                + (UINT16) (CharToUint (VariableName[NumOff+3]) * 0x1);\r
   }\r
-  //\r
-  // Insert active entry to BdsDeviceList\r
-  //\r
-  if ((Option->Attribute & LOAD_OPTION_ACTIVE) == LOAD_OPTION_ACTIVE) {\r
-    InsertTailList (BdsCommonOptionList, &Option->Link);\r
-    FreePool (Variable);\r
-    return Option;\r
-  }\r
-\r
+  InsertTailList (BdsCommonOptionList, &Option->Link);\r
   FreePool (Variable);\r
-  FreePool (Option->Description);\r
-  FreePool (Option->DevicePath);\r
-  FreePool (Option->LoadOptions);\r
-  FreePool (Option);\r
-  return NULL;\r
+  return Option;\r
 }\r
 \r
 /**\r