]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdeModulePkg/BootMaintenanceManagerUiLib: Remove type casting in ChooseFile
authorDandan Bi <dandan.bi@intel.com>
Tue, 22 Mar 2016 02:50:23 +0000 (10:50 +0800)
committerFeng Tian <feng.tian@intel.com>
Wed, 23 Mar 2016 08:04:03 +0000 (16:04 +0800)
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>
MdeModulePkg/Library/BootMaintenanceManagerUiLib/BootMaintenance.c

index 745f9715540cd176e041f2b76669c25d86c13ef6..a34ac850469512f66da83b44405856fa1ea88974 100644 (file)
@@ -902,12 +902,12 @@ BootMaintCallback (
         switch (QuestionId) {\r
         case FORM_BOOT_ADD_ID:\r
           // Leave BMM and enter FileExplorer. \r
-          ChooseFile( NULL, L".efi", (CHOOSE_HANDLER) CreateBootOptionFromFile, &File);\r
+          ChooseFile (NULL, L".efi", CreateBootOptionFromFile, &File);\r
           break;\r
 \r
         case FORM_DRV_ADD_FILE_ID:\r
           // Leave BMM and enter FileExplorer.\r
-          ChooseFile( NULL, L".efi", (CHOOSE_HANDLER) CreateDriverOptionFromFile, &File);\r
+          ChooseFile (NULL, L".efi", CreateDriverOptionFromFile, &File);\r
           break;\r
 \r
         case FORM_DRV_ADD_HANDLE_ID:\r
@@ -983,7 +983,7 @@ BootMaintCallback (
     }\r
     if (QuestionId == KEY_VALUE_BOOT_FROM_FILE){\r
       // Leave BMM and enter FileExplorer.\r
-      ChooseFile( NULL, L".efi", (CHOOSE_HANDLER) BootFromFile, &File);\r
+      ChooseFile (NULL, L".efi", BootFromFile, &File);\r
     }\r
   } else if (Action == EFI_BROWSER_ACTION_CHANGED) {\r
     if ((Value == NULL) || (ActionRequest == NULL)) {\r