[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 13/13] trivial: Remove xenfb_enabled from sysemu.h
From: |
Thomas Huth |
Subject: |
[PULL 13/13] trivial: Remove xenfb_enabled from sysemu.h |
Date: |
Mon, 3 Feb 2020 13:38:11 +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: <address@hidden>
Acked-by: Paul Durrant <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Thomas Huth <address@hidden>
---
hw/xenpv/xen_machine_pv.c | 2 +-
include/sysemu/sysemu.h | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/hw/xenpv/xen_machine_pv.c b/hw/xenpv/xen_machine_pv.c
index 3a8af1a1e0..8df575a457 100644
--- a/hw/xenpv/xen_machine_pv.c
+++ b/hw/xenpv/xen_machine_pv.c
@@ -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);
}
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h
index 686f4217a6..6358a324a7 100644
--- a/include/sysemu/sysemu.h
+++ b/include/sysemu/sysemu.h
@@ -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;
--
2.18.1
- [PULL 01/13] test-logging: Fix -Werror=maybe-uninitialized warning, (continued)
- [PULL 01/13] test-logging: Fix -Werror=maybe-uninitialized warning, Thomas Huth, 2020/02/03
- [PULL 03/13] docs/devel: Fix qtest paths and info about check-block in testing.rst, Thomas Huth, 2020/02/03
- [PULL 04/13] tests/Makefile: Fix inclusion of the qos dependency files, Thomas Huth, 2020/02/03
- [PULL 06/13] tests/qtest: update comments about bios-tables-test-allowed-diff.h, Thomas Huth, 2020/02/03
- [PULL 05/13] boot-order-test: fix memleaks in boot-order-test, Thomas Huth, 2020/02/03
- [PULL 08/13] hw/bt: Remove empty Kconfig file, Thomas Huth, 2020/02/03
- [PULL 09/13] hw/input: Do not enable CONFIG_PCKBD by default, Thomas Huth, 2020/02/03
- [PULL 07/13] gitlab-ci: Refresh the list of iotests, Thomas Huth, 2020/02/03
- [PULL 10/13] hw/hppa/Kconfig: LASI chipset requires PARALLEL port, Thomas Huth, 2020/02/03
- [PULL 12/13] include/sysemu/sysemu.h: Remove usused variable no_quit, Thomas Huth, 2020/02/03
- [PULL 13/13] trivial: Remove xenfb_enabled from sysemu.h,
Thomas Huth <=
- [PULL 11/13] hw/*/Makefile.objs: Move many .o files to common-objs, Thomas Huth, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Peter Maydell, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Thomas Huth, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Thomas Huth, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Peter Maydell, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Thomas Huth, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Thomas Huth, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Paolo Bonzini, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Paolo Bonzini, 2020/02/03
- Re: [PULL 00/13] qtests, kconfig and misc patches, Thomas Huth, 2020/02/03