diff options
author | Laszlo Ersek <lersek@redhat.com> | 2016-03-18 20:30:31 +0100 |
---|---|---|
committer | Laszlo Ersek <lersek@redhat.com> | 2016-03-25 10:52:28 +0100 |
commit | 8192be265ee142d4a71cc9024a2ce0060a3d686d (patch) | |
tree | 7767f5fdc029403d603234c139291b6841e67b78 | |
parent | 59ddab7e6e7397736f89355ccbaa2e1817992fec (diff) | |
download | edk2-platforms-8192be265ee142d4a71cc9024a2ce0060a3d686d.tar.xz |
MdeModulePkg: BootMaintenanceManagerUiLib: remove set but unused variables
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>
-rw-r--r-- | MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c | 6 | ||||
-rw-r--r-- | MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c | 2 |
2 files changed, 0 insertions, 8 deletions
diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c index a34ac85046..564a228b7c 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c @@ -867,9 +867,6 @@ BootMaintCallback ( BMM_CALLBACK_DATA *Private;
BM_MENU_ENTRY *NewMenuEntry;
BMM_FAKE_NV_DATA *CurrentFakeNVMap;
- UINTN OldValue;
- UINTN NewValue;
- UINTN Number;
UINTN Index;
EFI_DEVICE_PATH_PROTOCOL * File;
@@ -879,9 +876,6 @@ BootMaintCallback ( //
return EFI_UNSUPPORTED;
}
- OldValue = 0;
- NewValue = 0;
- Number = 0;
Private = BMM_CALLBACK_DATA_FROM_THIS (This);
//
diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c index cd1756aa58..484f1acda1 100644 --- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c +++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c @@ -581,7 +581,6 @@ UpdateOrderPage ( UINT16 Index;
UINT16 OptionIndex;
VOID *OptionsOpCodeHandle;
- BM_LOAD_CONTEXT *NewLoadContext;
BOOLEAN BootOptionFound;
UINT32 *OptionOrder;
EFI_QUESTION_ID QuestionId;
@@ -619,7 +618,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;
|