]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
cirrus: fix an uninitialized variable xen-4.4.2 xen-4.4.2-rc2
authorJan Beulich <JBeulich@suse.com>
Mon, 2 Feb 2015 16:49:59 +0000 (16:49 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 16 Feb 2015 14:51:17 +0000 (14:51 +0000)
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 <jbeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
(cherry picked from commit a4b276b4ce49c8d70dd841ff885b900ec652b994)
(cherry picked from commit 3499745d3a8561cce67f3d4fbc2da60401253ad4)

hw/cirrus_vga.c

index 38c829af44a85272e7dcc10554d0d195a2ef01a8..a26b0517298bad202c5d7ef5f126e7baeeea7c37 100644 (file)
@@ -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;
     }