[SeaBIOS] [PATCH] bochs_display_setup: return error on failure
Gerd Hoffmann
kraxel at redhat.com
Fri Jun 15 14:59:06 CEST 2018
Signed-off-by: Gerd Hoffmann <kraxel at redhat.com>
---
vgasrc/bochsdisplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vgasrc/bochsdisplay.c b/vgasrc/bochsdisplay.c
index e1f90f9678..6a75f3787e 100644
--- a/vgasrc/bochsdisplay.c
+++ b/vgasrc/bochsdisplay.c
@@ -38,7 +38,7 @@ bochs_display_setup(void)
dprintf(1, "bochs-display: id is 0x%x, %s\n", id
, id == VBE_DISPI_ID5 ? "good" : "FAIL");
if (id != VBE_DISPI_ID5)
- return 0;
+ return -1;
dprintf(1, "bochs-display: using %dx%d, %d bpp (%d stride)\n"
, FRAMEBUFFER_WIDTH, FRAMEBUFFER_HEIGHT
--
2.9.3
More information about the SeaBIOS
mailing list