trivial: Remove xenfb_enabled from sysemu.h
authorThomas Huth <thuth@redhat.com>
Tue, 21 Jan 2020 16:05:31 +0000 (17:05 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 4 Feb 2020 08:00:57 +0000 (09:00 +0100)
The define is only used in one other place. Move the code there
instead of keeping this xen-specific define in sysemu.h.

Message-Id: <20200121161747.10569-1-thuth@redhat.com>
Acked-by: Paul Durrant <paul@xen.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/xenpv/xen_machine_pv.c
include/sysemu/sysemu.h

index 3a8af1a1e074a9c14bfba2d8e04c7e21346feea5..8df575a457c89ad308698718b223506154b91e1c 100644 (file)
@@ -60,7 +60,7 @@ static void xen_init_pv(MachineState *machine)
     xen_be_register("qnic", &xen_netdev_ops);
 
     /* configure framebuffer */
-    if (xenfb_enabled) {
+    if (vga_interface_type == VGA_XENFB) {
         xen_config_dev_vfb(0, "vnc");
         xen_config_dev_vkbd(0);
     }
index 686f4217a6a729c63c709e84d35f3ed09357f18b..6358a324a711cf872ba43df002f5e681413530d5 100644 (file)
@@ -32,7 +32,6 @@ typedef enum {
 } VGAInterfaceType;
 
 extern int vga_interface_type;
-#define xenfb_enabled (vga_interface_type == VGA_XENFB)
 
 extern int graphic_width;
 extern int graphic_height;