]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c
MdeModulePkg: Refine the code in BootMaintenanceManagerUiLib
authorDandan Bi <dandan.bi@intel.com>
Tue, 26 Jan 2016 08:07:18 +0000 (16:07 +0800)
committerStar Zeng <star.zeng@intel.com>
Tue, 23 Feb 2016 09:03:21 +0000 (17:03 +0800)
commit2ba36b2f0ea77661a4a3dcce6785df49be20698d
tree28242b324a594210cb93bd52583c5f44ff6dfb06
parent3a2718d74eb38e33be8b1d493bd84840f5cc3729
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>
MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenanceManager.h
MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootOption.c
MdeModulePkg/Library/BootMaintenanceManagerUiLib/Variable.c