summaryrefslogtreecommitdiffstats
path: root/MdeModulePkg/Library/BootMaintenanceManagerUiLib
diff options
context:
space:
mode:
authorDandan Bi <dandan.bi@intel.com>2016-03-22 10:50:23 +0800
committerFeng Tian <feng.tian@intel.com>2016-03-23 16:04:03 +0800
commitc7d1e742ecf9c149449c031dbfb4493bfdd0b815 (patch)
tree737730e39b93617ca7462368b0de460afb33174b /MdeModulePkg/Library/BootMaintenanceManagerUiLib
parentbdf0da37c92fc544100f8a809fcd8ceee67c045d (diff)
downloadedk2-c7d1e742ecf9c149449c031dbfb4493bfdd0b815.tar.gz
edk2-c7d1e742ecf9c149449c031dbfb4493bfdd0b815.tar.bz2
edk2-c7d1e742ecf9c149449c031dbfb4493bfdd0b815.zip
MdeModulePkg/BootMaintenanceManagerUiLib: Remove type casting in ChooseFile
The type casting is not necessary and now remove it. Cc: Liming Gao <liming.gao@intel.com> Cc: Eric Dong <eric.dong@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Gary Lin <glin@suse.com>
Diffstat (limited to 'MdeModulePkg/Library/BootMaintenanceManagerUiLib')
-rw-r--r--MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c
index 745f971554..a34ac85046 100644
--- a/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c
+++ b/MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c
@@ -902,12 +902,12 @@ BootMaintCallback (
switch (QuestionId) {
case FORM_BOOT_ADD_ID:
// Leave BMM and enter FileExplorer.
- ChooseFile( NULL, L".efi", (CHOOSE_HANDLER) CreateBootOptionFromFile, &File);
+ ChooseFile (NULL, L".efi", CreateBootOptionFromFile, &File);
break;
case FORM_DRV_ADD_FILE_ID:
// Leave BMM and enter FileExplorer.
- ChooseFile( NULL, L".efi", (CHOOSE_HANDLER) CreateDriverOptionFromFile, &File);
+ ChooseFile (NULL, L".efi", CreateDriverOptionFromFile, &File);
break;
case FORM_DRV_ADD_HANDLE_ID:
@@ -983,7 +983,7 @@ BootMaintCallback (
}
if (QuestionId == KEY_VALUE_BOOT_FROM_FILE){
// Leave BMM and enter FileExplorer.
- ChooseFile( NULL, L".efi", (CHOOSE_HANDLER) BootFromFile, &File);
+ ChooseFile (NULL, L".efi", BootFromFile, &File);
}
} else if (Action == EFI_BROWSER_ACTION_CHANGED) {
if ((Value == NULL) || (ActionRequest == NULL)) {