diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-09-09 08:39:40 +0300 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-09-11 12:02:02 +0300 |
commit | f4c1a14f96bde3b4437216092fed43acb2b9f933 (patch) | |
tree | ac9d9d5043598ad38d9e4e17c420b561f30f63bb /cmd/nvedit_efi.c | |
parent | 0bf538ce0c6d7cdf68749425e6c9f7b729066367 (diff) | |
download | u-boot-f4c1a14f96bde3b4437216092fed43acb2b9f933.tar.xz |
efi_loader: eliminate EFI_CALL() in nvedit_efi.c
Reduce the code size by avoiding using the external UEFI API and using our
internal functions instead.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd/nvedit_efi.c')
-rw-r--r-- | cmd/nvedit_efi.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmd/nvedit_efi.c b/cmd/nvedit_efi.c index 676bbda950..710d923a91 100644 --- a/cmd/nvedit_efi.c +++ b/cmd/nvedit_efi.c @@ -187,8 +187,8 @@ static int efi_dump_var_all(int argc, char *const argv[], var_name16[0] = 0; for (;;) { size = buf_size; - ret = EFI_CALL(efi_get_next_variable_name(&size, var_name16, - &guid)); + ret = efi_get_next_variable_name_int(&size, var_name16, + &guid); if (ret == EFI_NOT_FOUND) break; if (ret == EFI_BUFFER_TOO_SMALL) { @@ -199,9 +199,8 @@ static int efi_dump_var_all(int argc, char *const argv[], return CMD_RET_FAILURE; } var_name16 = p; - ret = EFI_CALL(efi_get_next_variable_name(&size, - var_name16, - &guid)); + ret = efi_get_next_variable_name_int(&size, var_name16, + &guid); } if (ret != EFI_SUCCESS) { free(var_name16); |