Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jun 2023 23:01:51 GMT
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 780332f1c1cf - main - loader.efi: Remove redundant error message
Message-ID:  <202306262301.35QN1pjw081996@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=780332f1c1cfc38cf44daf29f39516be75d2f979

commit 780332f1c1cfc38cf44daf29f39516be75d2f979
Author:     VexedUXR <ahmadkhalifa570@gmail.com>
AuthorDate: 2023-06-26 22:57:28 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2023-06-26 22:57:31 +0000

    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
---
 stand/efi/loader/main.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c
index 872f78ba82b2..5e6a10adb98b 100644
--- a/stand/efi/loader/main.c
+++ b/stand/efi/loader/main.c
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202306262301.35QN1pjw081996>