From: Simon Glass <sjg@chromium.org>
The intend of this macro is to debug calls from an app. But the efidebug
command is not an app, so it really doesn't make a lot of sense to call
via that macro. Remove EFI_CALL() from do_efi_show_handles() so that the
app can use this code.
Signed-off-by: Simon Glass <sjg@chromium.org>
---
cmd/efidebug.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
@@ -474,8 +474,7 @@ static int do_efi_show_handles(struct cmd_tbl *cmdtp, int flag,
if (app_not_supported("show_handles"))
return CMD_RET_FAILURE;
- ret = EFI_CALL(efi_locate_handle_buffer(ALL_HANDLES, NULL, NULL,
- &num, &handles));
+ ret = efi_locate_handle_buffer(ALL_HANDLES, NULL, NULL, &num, &handles);
if (ret != EFI_SUCCESS)
return CMD_RET_FAILURE;
@@ -494,8 +493,7 @@ static int do_efi_show_handles(struct cmd_tbl *cmdtp, int flag,
&handler);
if (ret == EFI_SUCCESS)
printf(" %pD\n", handler->protocol_interface);
- ret = EFI_CALL(BS->protocols_per_handle(handles[i], &guid,
- &count));
+ ret = BS->protocols_per_handle(handles[i], &guid, &count);
/* Print other protocols */
for (j = 0; j < count; j++) {
if (guidcmp(guid[j], &efi_guid_device_path))