mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
0bf538ce0c
commit
f4c1a14f96
1 changed files with 4 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue