Reviewed-by: Eric Dong <eric.d...@intel.com>
> -----Original Message----- > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of Laszlo > Ersek > Sent: Thursday, March 24, 2016 6:37 PM > To: edk2-devel-01 > Cc: Ni, Ruiyu; Tian, Feng; Zeng, Star > Subject: [edk2] [PATCH 15/35] MdeModulePkg: BootMaintenanceManagerUiLib: > remove set but unused variables > > Cc: Feng Tian <feng.t...@intel.com> > Cc: Star Zeng <star.z...@intel.com> > Cc: Ruiyu Ni <ruiyu...@intel.com> > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Laszlo Ersek <ler...@redhat.com> > --- > MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c | 6 ------ > MdeModulePkg/Library/BootMaintenanceManagerUiLib/UpdatePage.c | 2 -- > 2 files changed, 8 deletions(-) > > diff --git > a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c > b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c > index a34ac8504695..564a228b7c67 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 cd1756aa588a..484f1acda10b 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; > -- > 1.8.3.1 > > > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel