[Concept,02/14] efi: Drop EFI_CALL() from efidebug command

Message ID 20250820144621.1073679-3-sjg@u-boot.org
State New
Headers
Series efi: app: Support booting an OS |

Commit Message

Simon Glass Aug. 20, 2025, 2:46 p.m. UTC
  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(-)
  

Patch

diff --git a/cmd/efidebug.c b/cmd/efidebug.c
index 7755585c778..2df0fc4e221 100644
--- a/cmd/efidebug.c
+++ b/cmd/efidebug.c
@@ -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))