From 9550be0726b577cf038691c77d8c924c43e7cebd Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Mon, 2 Feb 2015 16:49:59 +0000 Subject: [PATCH] cirrus: fix an uninitialized variable Noticed by paying attention to a compiler warning (reported for the only caller of the function modified, vga_ioport_read()). Signed-off-by: Jan Beulich Acked-by: Ian Jackson (cherry picked from commit a4b276b4ce49c8d70dd841ff885b900ec652b994) (cherry picked from commit 3499745d3a8561cce67f3d4fbc2da60401253ad4) (cherry picked from commit e052bfcd0f2b0776f1f39f8282446ba8601bde82) --- hw/cirrus_vga.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/cirrus_vga.c b/hw/cirrus_vga.c index 38c829af4..a26b05172 100644 --- a/hw/cirrus_vga.c +++ b/hw/cirrus_vga.c @@ -1658,8 +1658,8 @@ cirrus_hook_read_cr(CirrusVGAState * s, unsigned reg_index, int *reg_value) default: #ifdef DEBUG_CIRRUS printf("cirrus: inport cr_index %02x\n", reg_index); - *reg_value = 0xff; #endif + *reg_value = 0xff; break; } -- 2.39.5