From a46007a021b8889f373867132a0ed1fe8bb9d36c Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Mon, 31 Aug 2009 16:07:23 +0200 Subject: vga and cirrus_vga: substitute switch for equivalent assigntment Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- hw/vga.c | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'hw/vga.c') diff --git a/hw/vga.c b/hw/vga.c index 0d4e558..ff97aa7 100644 --- a/hw/vga.c +++ b/hw/vga.c @@ -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: -- cgit v1.1