mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
loader.efi: Remove redundant error message
efi_copy_init already prints an error message (with more information) if it fails. Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/777
This commit is contained in:
parent
3df959b5fe
commit
780332f1c1
|
@ -1062,10 +1062,8 @@ main(int argc, CHAR16 *argv[])
|
|||
*/
|
||||
boot_howto_to_env(howto);
|
||||
|
||||
if (efi_copy_init()) {
|
||||
printf("failed to allocate staging area\n");
|
||||
if (efi_copy_init())
|
||||
return (EFI_BUFFER_TOO_SMALL);
|
||||
}
|
||||
|
||||
if ((s = getenv("fail_timeout")) != NULL)
|
||||
fail_timeout = strtol(s, NULL, 10);
|
||||
|
|
Loading…
Reference in a new issue