Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/stand/efiboot EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset() ma...



details:   https://anonhg.NetBSD.org/src/rev/dd79ad26600b
branches:  trunk
changeset: 992324:dd79ad26600b
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Fri Aug 24 20:51:15 2018 +0000

description:
EFI_SIMPLE_TEXT_OUTPUT_PROTOCOL.Reset() may not be supported. Failing to reset is not a fatal error, so ignore the status.

diffstat:

 sys/stand/efiboot/efiboot.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (20 lines):

diff -r 6a0d28a0e49a -r dd79ad26600b sys/stand/efiboot/efiboot.c
--- a/sys/stand/efiboot/efiboot.c       Fri Aug 24 20:26:03 2018 +0000
+++ b/sys/stand/efiboot/efiboot.c       Fri Aug 24 20:51:15 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efiboot.c,v 1.1 2018/08/24 02:01:06 jmcneill Exp $ */
+/* $NetBSD: efiboot.c,v 1.2 2018/08/24 20:51:15 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2018 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -50,9 +50,7 @@
 
        InitializeLib(imageHandle, systemTable);
 
-       status = uefi_call_wrapper(ST->ConOut->Reset, 2, ST->ConOut, FALSE);
-       if (EFI_ERROR(status))
-               return status;
+       (void)uefi_call_wrapper(ST->ConOut->Reset, 2, ST->ConOut, FALSE);
 
        status = uefi_call_wrapper(BS->AllocatePages, 4, AllocateAnyPages, EfiLoaderData, sz, &heap_start);
        if (EFI_ERROR(status))



Home | Main Index | Thread Index | Old Index