Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/efiboot Remove check for bestmode==-1 (s...



details:   https://anonhg.NetBSD.org/src/rev/f7cde1000be7
branches:  trunk
changeset: 745066:f7cde1000be7
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sat Feb 22 10:30:37 2020 +0000

description:
Remove check for bestmode==-1 (shouldn't happen)

diffstat:

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

diffs (27 lines):

diff -r 003888cf9a48 -r f7cde1000be7 sys/arch/i386/stand/efiboot/eficons.c
--- a/sys/arch/i386/stand/efiboot/eficons.c     Sat Feb 22 10:29:17 2020 +0000
+++ b/sys/arch/i386/stand/efiboot/eficons.c     Sat Feb 22 10:30:37 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: eficons.c,v 1.10 2020/02/22 09:34:26 jmcneill Exp $    */
+/*     $NetBSD: eficons.c,v 1.11 2020/02/22 10:30:37 jmcneill Exp $    */
 
 /*-
  * Copyright (c) 2016 Kimihiro Nonaka <nonaka%netbsd.org@localhost>
@@ -421,7 +421,7 @@
        EFI_STATUS status;
        EFI_GRAPHICS_OUTPUT_MODE_INFORMATION *info;
        struct btinfo_framebuffer fb;
-       INT32 bestmode = -1;
+       INT32 bestmode;
        UINTN sz;
 
        if (efi_gop == NULL)
@@ -435,8 +435,6 @@
                if (bestmode == -1)
                        bestmode = FALLBACK_GOP_MODE;
        }
-       if (bestmode == -1)
-               goto nofb;
 
        status = uefi_call_wrapper(efi_gop->SetMode, 2, efi_gop,
            bestmode);



Home | Main Index | Thread Index | Old Index