Removes some unused assigned variables. Some compiler (GCC in this case) raises a warning/error.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Olivier Martin <olivier.martin@arm.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>


git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16187 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
Olivier Martin 2014-09-29 08:46:31 +00:00 committed by ydong10
parent 3dfe9247ce
commit e7a2064ec7
1 changed files with 0 additions and 5 deletions

View File

@ -543,7 +543,6 @@ UpdateOrderPage (
UINT16 Index;
UINT16 OptionIndex;
VOID *OptionsOpCodeHandle;
BM_LOAD_CONTEXT *NewLoadContext;
BOOLEAN BootOptionFound;
UINT32 *OptionOrder;
EFI_QUESTION_ID QuestionId;
@ -583,7 +582,6 @@ UpdateOrderPage (
BootOptionFound = FALSE;
for (Index = 0; Index < OptionMenu->MenuNumber; Index++) {
NewMenuEntry = BOpt_GetMenuEntry (OptionMenu, Index);
NewLoadContext = (BM_LOAD_CONTEXT *) NewMenuEntry->VariableContext;
if ((UINT32) (NewMenuEntry->OptionNumber + 1) == OptionOrder[OptionIndex]) {
BootOptionFound = TRUE;
break;
@ -892,7 +890,6 @@ UpdateTerminalPage (
UINT8 Index;
UINT8 CheckFlags;
BM_MENU_ENTRY *NewMenuEntry;
BM_TERMINAL_CONTEXT *NewTerminalContext;
VOID *OptionsOpCodeHandle;
UINTN CurrentTerminal;
@ -908,8 +905,6 @@ UpdateTerminalPage (
return ;
}
NewTerminalContext = (BM_TERMINAL_CONTEXT *) NewMenuEntry->VariableContext;
OptionsOpCodeHandle = HiiAllocateOpCodeHandle ();
ASSERT (OptionsOpCodeHandle != NULL);