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>
This commit is contained in:
Dandan Bi 2016-03-22 10:50:23 +08:00 committed by Feng Tian
parent bdf0da37c9
commit c7d1e742ec
1 changed files with 3 additions and 3 deletions

View File

@ -902,12 +902,12 @@ BootMaintCallback (
switch (QuestionId) { switch (QuestionId) {
case FORM_BOOT_ADD_ID: case FORM_BOOT_ADD_ID:
// Leave BMM and enter FileExplorer. // Leave BMM and enter FileExplorer.
ChooseFile( NULL, L".efi", (CHOOSE_HANDLER) CreateBootOptionFromFile, &File); ChooseFile (NULL, L".efi", CreateBootOptionFromFile, &File);
break; break;
case FORM_DRV_ADD_FILE_ID: case FORM_DRV_ADD_FILE_ID:
// Leave BMM and enter FileExplorer. // Leave BMM and enter FileExplorer.
ChooseFile( NULL, L".efi", (CHOOSE_HANDLER) CreateDriverOptionFromFile, &File); ChooseFile (NULL, L".efi", CreateDriverOptionFromFile, &File);
break; break;
case FORM_DRV_ADD_HANDLE_ID: case FORM_DRV_ADD_HANDLE_ID:
@ -983,7 +983,7 @@ BootMaintCallback (
} }
if (QuestionId == KEY_VALUE_BOOT_FROM_FILE){ if (QuestionId == KEY_VALUE_BOOT_FROM_FILE){
// Leave BMM and enter FileExplorer. // 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) { } else if (Action == EFI_BROWSER_ACTION_CHANGED) {
if ((Value == NULL) || (ActionRequest == NULL)) { if ((Value == NULL) || (ActionRequest == NULL)) {