]> git.proxmox.com Git - mirror_edk2.git/commit - MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c
MdeModulePkg: DeleteLoadOptionVariable() removes Boot####
authorRuiyu Ni <ruiyu.ni@intel.com>
Fri, 8 Jan 2016 07:16:22 +0000 (07:16 +0000)
committerniruiyu <niruiyu@Edk2>
Fri, 8 Jan 2016 07:16:22 +0000 (07:16 +0000)
commit2e26862c6d64e9b58174b5732a76d79dc265d8bf
tree957af5912368db68adae12fb10926a38f6c65ebe
parent20fe1625567d0bc502a63818e3f416613bab813c
MdeModulePkg: DeleteLoadOptionVariable() removes Boot####

Change EfiBootManagerDeleteLoadOptionVariable() to not just
remove #### from BootOrder but also remove Boot#### variable.

The old behavior tries to do less for performance but it leaves
unreferenced Boot#### which cannot be reclaimed in variable
reclaim operation though the Boot#### will be eventually be overwritten
by EfiBootManagerAddLoadOptionVariable().

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19626 6f19259b-4bc3-4df7-8a09-765794883524
MdeModulePkg/Library/UefiBootManagerLib/BmLoadOption.c