diff options
author | Juan Quintela <quintela@redhat.com> | 2009-08-31 16:07:23 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-09-09 14:55:14 -0500 |
commit | a46007a021b8889f373867132a0ed1fe8bb9d36c (patch) | |
tree | a01d3f9b09cf82c684d4cf2dad6b3128b172a3c1 /hw/vga.c | |
parent | 957c9db562bb70ef18a4d803c9d789708a61e929 (diff) | |
download | qemu-a46007a021b8889f373867132a0ed1fe8bb9d36c.zip qemu-a46007a021b8889f373867132a0ed1fe8bb9d36c.tar.gz qemu-a46007a021b8889f373867132a0ed1fe8bb9d36c.tar.bz2 |
vga and cirrus_vga: substitute switch for equivalent assigntment
Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/vga.c')
-rw-r--r-- | hw/vga.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -488,19 +488,7 @@ void vga_ioport_write(void *opaque, uint32_t addr, uint32_t val) s->cr[7] = (s->cr[7] & ~0x10) | (val & 0x10); return; } - switch(s->cr_index) { - case 0x01: /* horizontal display end */ - case 0x07: - case 0x09: - case 0x0c: - case 0x0d: - case 0x12: /* vertical display end */ - s->cr[s->cr_index] = val; - break; - default: - s->cr[s->cr_index] = val; - break; - } + s->cr[s->cr_index] = val; switch(s->cr_index) { case 0x00: |