From: Gerd Hoffmann Subject: [PATCH 09/10] simplify vga selection Date: Tue, 21 Apr 2009 14:20:07 +0200 Message-ID: <1240316408-15949-10-git-send-email-kraxel@redhat.com> References: <1240316408-15949-1-git-send-email-kraxel@redhat.com> Return-path: In-Reply-To: <1240316408-15949-1-git-send-email-kraxel@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: qemu-devel@nongnu.org, xen-devel@lists.xensource.com Cc: Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org Signed-off-by: Gerd Hoffmann --- vl.c | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-) diff --git a/vl.c b/vl.c index 19cd28f..7d6dcb6 100644 --- a/vl.c +++ b/vl.c @@ -4162,23 +4162,16 @@ static void select_vgahw (const char *p) { const char *opts; + cirrus_vga_enabled = 0; + std_vga_enabled = 0; + vmsvga_enabled = 0; if (strstart(p, "std", &opts)) { std_vga_enabled = 1; - cirrus_vga_enabled = 0; - vmsvga_enabled = 0; } else if (strstart(p, "cirrus", &opts)) { cirrus_vga_enabled = 1; - std_vga_enabled = 0; - vmsvga_enabled = 0; } else if (strstart(p, "vmware", &opts)) { - cirrus_vga_enabled = 0; - std_vga_enabled = 0; vmsvga_enabled = 1; - } else if (strstart(p, "none", &opts)) { - cirrus_vga_enabled = 0; - std_vga_enabled = 0; - vmsvga_enabled = 0; - } else { + } else if (!strstart(p, "none", &opts)) { invalid_vga: fprintf(stderr, "Unknown vga type: %s\n", p); exit(1); -- 1.6.2.2