diff options
author | Hao Wu <hao.a.wu@intel.com> | 2016-07-14 14:35:35 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-14 15:51:31 +0800 |
commit | c4ed6b25446485be9d832fca3ab0df3430f39c53 (patch) | |
tree | 79dc1e571e73bc51afbcde8e638e818dd28323fe /MdeModulePkg/Application/UiApp/BootMaint | |
parent | d701a9e0ade980806a8af5cf3892b976c3f04251 (diff) | |
download | edk2-platforms-c4ed6b25446485be9d832fca3ab0df3430f39c53.tar.xz |
MdeModulePkg BootMaint: remove set but unused variables
(Integrate commit 8192be265ee142d4a71cc9024a2ce0060a3d686d from master
branch)
Cc: Feng Tian <feng.tian@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Ruiyu Ni <ruiyu.ni@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jeff Fan <jeff.fan@intel.com>
Diffstat (limited to 'MdeModulePkg/Application/UiApp/BootMaint')
-rw-r--r-- | MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c | 7 | ||||
-rw-r--r-- | MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c | 2 |
2 files changed, 0 insertions, 9 deletions
diff --git a/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c b/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c index 0a187f5696..98c46668f1 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c +++ b/MdeModulePkg/Application/UiApp/BootMaint/BootMaint.c @@ -552,9 +552,6 @@ BootMaintCallback ( BMM_CALLBACK_DATA *Private;
BM_MENU_ENTRY *NewMenuEntry;
BMM_FAKE_NV_DATA *CurrentFakeNVMap;
- UINTN OldValue;
- UINTN NewValue;
- UINTN Number;
UINTN Index;
//
@@ -574,10 +571,6 @@ BootMaintCallback ( return EFI_UNSUPPORTED;
}
- OldValue = 0;
- NewValue = 0;
- Number = 0;
-
Private = BMM_CALLBACK_DATA_FROM_THIS (This);
//
diff --git a/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c b/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c index c9df7baeb6..73f451c43c 100644 --- a/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c +++ b/MdeModulePkg/Application/UiApp/BootMaint/UpdatePage.c @@ -607,7 +607,6 @@ UpdateOrderPage ( UINT16 Index;
UINT16 OptionIndex;
VOID *OptionsOpCodeHandle;
- BM_LOAD_CONTEXT *NewLoadContext;
BOOLEAN BootOptionFound;
UINT32 *OptionOrder;
EFI_QUESTION_ID QuestionId;
@@ -647,7 +646,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;
|