MdeModulePkg: Refine the code in BootMaintenanceManagerUiLib
Refine the code in function Var_UpdateDriverOption and Var_UpdateBootOption, use the existed API(EfiBootManagerInitializeLoadOption and EfiBootManagerAddLoadOptionVariable) supplied by UefiBootManagerLib to replace the same logic in the two functions. And remove the useless code. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/** @file
|
||||
Header file for boot maintenance module.
|
||||
|
||||
Copyright (c) 2004 - 2015, Intel Corporation. All rights reserved.<BR>
|
||||
Copyright (c) 2004 - 2016, Intel Corporation. All rights reserved.<BR>
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
@@ -268,24 +268,15 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
BOOLEAN IsBootNext;
|
||||
BOOLEAN LoadOptionModified;
|
||||
BOOLEAN Deleted;
|
||||
|
||||
BOOLEAN IsLegacy;
|
||||
BOOLEAN IsActive;
|
||||
BOOLEAN ForceReconnect;
|
||||
UINTN OptionalDataSize;
|
||||
|
||||
UINTN LoadOptionSize;
|
||||
UINT8 *LoadOption;
|
||||
|
||||
UINT32 Attributes;
|
||||
UINT16 FilePathListLength;
|
||||
UINT16 *Description;
|
||||
EFI_DEVICE_PATH_PROTOCOL *FilePathList;
|
||||
UINT8 *OptionalData;
|
||||
|
||||
UINT16 BbsIndex;
|
||||
} BM_LOAD_CONTEXT;
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user