[SeaBIOS] [PATCH] bochs_display_setup: return error on failure

Gerd Hoffmann posted 1 patch 25 weeks ago
Failed in applying to current master (apply log)
vgasrc/bochsdisplay.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

[SeaBIOS] [PATCH] bochs_display_setup: return error on failure

Posted by Gerd Hoffmann 25 weeks ago
Signed-off-by: Gerd Hoffmann <kraxel@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


_______________________________________________
SeaBIOS mailing list
SeaBIOS@seabios.org
https://mail.coreboot.org/mailman/listinfo/seabios