qemu-devel
[Top][All Lists]
Advanced

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

[PATCH] bochs-display: Modify mismatched return value


From: jianchunfu
Subject: [PATCH] bochs-display: Modify mismatched return value
Date: Wed, 14 Sep 2022 15:34:13 +0800

Modify the return value of unsigned int to 0.

Signed-off-by: jianchunfu <jianchunfu@cmss.chinamobile.com>
---
 hw/display/bochs-display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/display/bochs-display.c b/hw/display/bochs-display.c
index 8ed734b195..3bd22b4ea7 100644
--- a/hw/display/bochs-display.c
+++ b/hw/display/bochs-display.c
@@ -83,7 +83,7 @@ static uint64_t bochs_display_vbe_read(void *ptr, hwaddr addr,
     }
 
     if (index >= ARRAY_SIZE(s->vbe_regs)) {
-        return -1;
+        return 0;
     }
     return s->vbe_regs[index];
 }
-- 
2.18.4






reply via email to

[Prev in Thread] Current Thread [Next in Thread]