From c7d1e742ecf9c149449c031dbfb4493bfdd0b815 Mon Sep 17 00:00:00 2001 From: Dandan Bi Date: Tue, 22 Mar 2016 10:50:23 +0800 Subject: [PATCH] MdeModulePkg/BootMaintenanceManagerUiLib: Remove type casting in ChooseFile The type casting is not necessary and now remove it. Cc: Liming Gao Cc: Eric Dong Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Dandan Bi Reviewed-by: Eric Dong Reviewed-by: Gary Lin --- .../Library/BootMaintenanceManagerUiLib/BootMaintenance.c | 6 +++--- 1 file 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)) { -- 2.39.2