mirror of https://github.com/acidanthera/audk.git
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:
parent
3dfe9247ce
commit
e7a2064ec7
|
@ -543,7 +543,6 @@ UpdateOrderPage (
|
||||||
UINT16 Index;
|
UINT16 Index;
|
||||||
UINT16 OptionIndex;
|
UINT16 OptionIndex;
|
||||||
VOID *OptionsOpCodeHandle;
|
VOID *OptionsOpCodeHandle;
|
||||||
BM_LOAD_CONTEXT *NewLoadContext;
|
|
||||||
BOOLEAN BootOptionFound;
|
BOOLEAN BootOptionFound;
|
||||||
UINT32 *OptionOrder;
|
UINT32 *OptionOrder;
|
||||||
EFI_QUESTION_ID QuestionId;
|
EFI_QUESTION_ID QuestionId;
|
||||||
|
@ -583,7 +582,6 @@ UpdateOrderPage (
|
||||||
BootOptionFound = FALSE;
|
BootOptionFound = FALSE;
|
||||||
for (Index = 0; Index < OptionMenu->MenuNumber; Index++) {
|
for (Index = 0; Index < OptionMenu->MenuNumber; Index++) {
|
||||||
NewMenuEntry = BOpt_GetMenuEntry (OptionMenu, Index);
|
NewMenuEntry = BOpt_GetMenuEntry (OptionMenu, Index);
|
||||||
NewLoadContext = (BM_LOAD_CONTEXT *) NewMenuEntry->VariableContext;
|
|
||||||
if ((UINT32) (NewMenuEntry->OptionNumber + 1) == OptionOrder[OptionIndex]) {
|
if ((UINT32) (NewMenuEntry->OptionNumber + 1) == OptionOrder[OptionIndex]) {
|
||||||
BootOptionFound = TRUE;
|
BootOptionFound = TRUE;
|
||||||
break;
|
break;
|
||||||
|
@ -892,7 +890,6 @@ UpdateTerminalPage (
|
||||||
UINT8 Index;
|
UINT8 Index;
|
||||||
UINT8 CheckFlags;
|
UINT8 CheckFlags;
|
||||||
BM_MENU_ENTRY *NewMenuEntry;
|
BM_MENU_ENTRY *NewMenuEntry;
|
||||||
BM_TERMINAL_CONTEXT *NewTerminalContext;
|
|
||||||
VOID *OptionsOpCodeHandle;
|
VOID *OptionsOpCodeHandle;
|
||||||
UINTN CurrentTerminal;
|
UINTN CurrentTerminal;
|
||||||
|
|
||||||
|
@ -908,8 +905,6 @@ UpdateTerminalPage (
|
||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
NewTerminalContext = (BM_TERMINAL_CONTEXT *) NewMenuEntry->VariableContext;
|
|
||||||
|
|
||||||
OptionsOpCodeHandle = HiiAllocateOpCodeHandle ();
|
OptionsOpCodeHandle = HiiAllocateOpCodeHandle ();
|
||||||
ASSERT (OptionsOpCodeHandle != NULL);
|
ASSERT (OptionsOpCodeHandle != NULL);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue