MdeModulePkg/BootMaintenanceManagerUiLib: remove unused but set variable

As-is, the code triggers [-Werror=unused-but-set-variable] with GCC.

Fixes: a85be3ae48
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
This commit is contained in:
Laszlo Ersek 2016-05-13 17:50:41 +08:00 committed by Liming Gao
parent e7cbd1490f
commit 17da28f3e2
1 changed files with 0 additions and 2 deletions

View File

@ -42,7 +42,6 @@ BmmCreateBootNextMenu(
)
{
BM_MENU_ENTRY *NewMenuEntry;
BM_LOAD_CONTEXT *NewLoadContext;
UINTN NumberOfOptions;
UINT16 Index;
VOID *OptionsOpCodeHandle;
@ -59,7 +58,6 @@ BmmCreateBootNextMenu(
for (Index = 0; Index < BootOptionMenu.MenuNumber; Index++) {
NewMenuEntry = BOpt_GetMenuEntry (&BootOptionMenu, Index);
NewLoadContext = (BM_LOAD_CONTEXT *) NewMenuEntry->VariableContext;
StringBuffer = HiiGetString (HiiHandle, NewMenuEntry->DisplayStringToken, NULL);
ASSERT (StringBuffer != NULL);