Module Name: src
Committed By: jmcneill
Date: Sat Feb 22 10:30:37 UTC 2020
Modified Files:
src/sys/arch/i386/stand/efiboot: eficons.c
Log Message:
Remove check for bestmode==-1 (shouldn't happen)
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/i386/stand/efiboot/eficons.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/stand/efiboot/eficons.c
diff -u src/sys/arch/i386/stand/efiboot/eficons.c:1.10 src/sys/arch/i386/stand/efiboot/eficons.c:1.11
--- src/sys/arch/i386/stand/efiboot/eficons.c:1.10 Sat Feb 22 09:34:26 2020
+++ src/sys/arch/i386/stand/efiboot/eficons.c Sat Feb 22 10:30:37 2020
@@ -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 <[email protected]>
@@ -421,7 +421,7 @@ bi_framebuffer(void)
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 @@ bi_framebuffer(void)
if (bestmode == -1)
bestmode = FALLBACK_GOP_MODE;
}
- if (bestmode == -1)
- goto nofb;
status = uefi_call_wrapper(efi_gop->SetMode, 2, efi_gop,
bestmode);