summaryrefslogtreecommitdiff
path: root/SecurityPkg
diff options
context:
space:
mode:
authorGary Lin <glin@suse.com>2016-03-21 17:04:37 +0800
committerLaszlo Ersek <lersek@redhat.com>2016-03-24 09:26:49 +0100
commitd6224153d73f52eef4e402eb92e2c0784ac0705f (patch)
treeececc5a7d54a393f85baa41551bb50d19d75f080 /SecurityPkg
parentbac308be0c48624334f15c8677069e0596bd00d1 (diff)
downloadedk2-platforms-d6224153d73f52eef4e402eb92e2c0784ac0705f.tar.xz
SecurityPkg/SecureBootConfigDxe: Remove type casting from the ChooseFile handlers
The type casting in the ChooseFile is not necessary and it actually hid the incompatible handlers from the compiler. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Dandan Bi <dandan.bi@intel.com>
Diffstat (limited to 'SecurityPkg')
-rw-r--r--SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
index 8ca6d62396..e840316368 100644
--- a/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
+++ b/SecurityPkg/VariableAuthenticated/SecureBootConfigDxe/SecureBootConfigImpl.c
@@ -3590,23 +3590,23 @@ SecureBootCallback (
break;
case FORMID_ENROLL_PK_FORM:
- ChooseFile( NULL, NULL, (CHOOSE_HANDLER) UpdatePKFromFile, &File);
+ ChooseFile (NULL, NULL, UpdatePKFromFile, &File);
break;
case FORMID_ENROLL_KEK_FORM:
- ChooseFile( NULL, NULL, (CHOOSE_HANDLER) UpdateKEKFromFile, &File);
+ ChooseFile (NULL, NULL, UpdateKEKFromFile, &File);
break;
case SECUREBOOT_ENROLL_SIGNATURE_TO_DB:
- ChooseFile( NULL, NULL, (CHOOSE_HANDLER) UpdateDBFromFile, &File);
+ ChooseFile (NULL, NULL, UpdateDBFromFile, &File);
break;
case SECUREBOOT_ENROLL_SIGNATURE_TO_DBX:
- ChooseFile( NULL, NULL, (CHOOSE_HANDLER) UpdateDBXFromFile, &File);
+ ChooseFile (NULL, NULL, UpdateDBXFromFile, &File);
break;
case SECUREBOOT_ENROLL_SIGNATURE_TO_DBT:
- ChooseFile( NULL, NULL, (CHOOSE_HANDLER) UpdateDBTFromFile, &File);
+ ChooseFile (NULL, NULL, UpdateDBTFromFile, &File);
break;
case KEY_SECURE_BOOT_DELETE_PK: