summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-06-03 15:38:48 +0000
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>2013-06-03 15:41:26 +0000
commit49fa9881b2358e390e9e9466ddde74e995927efa (patch)
tree8a9400063e59ffea409eaec544221953327e5c25 /include
parent6a4e17711442849bf2cc731ccddef5a2a2d92d29 (diff)
downloadqemu-49fa9881b2358e390e9e9466ddde74e995927efa.zip
xen: simplify xen_enabled
No need for preprocessor conditionals in xen_enabled: xen_allowed is always defined. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> CC: qemu-stable@nongnu.org
Diffstat (limited to 'include')
-rw-r--r--include/hw/xen/xen.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/include/hw/xen/xen.h b/include/hw/xen/xen.h
index 7451c5a0bf..b42b0fdb48 100644
--- a/include/hw/xen/xen.h
+++ b/include/hw/xen/xen.h
@@ -25,11 +25,7 @@ extern bool xen_allowed;
static inline bool xen_enabled(void)
{
-#if defined(CONFIG_XEN_BACKEND) && defined(CONFIG_XEN)
return xen_allowed;
-#else
- return 0;
-#endif
}
int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num);