Patchwork [BACKPORT,qemu-xen,1/3] xen: simplify xen_enabled

login
register
mail settings
Submitter Stefano Stabellini
Date June 5, 2013, 12:07 p.m.
Message ID <1370434053-22272-1-git-send-email-stefano.stabellini@eu.citrix.com>
Download mbox | patch
Permalink /patch/249004/
State New
Headers show

Comments

Stefano Stabellini - June 5, 2013, 12:07 p.m.
No need for preprocessor conditionals in xen_enabled: xen_allowed is
always defined.

upstream-commit-id: 49fa9881b2358e390e9e9466ddde74e995927efa

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
---
 hw/xen.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

Patch

diff --git a/hw/xen.h b/hw/xen.h
index e3cca7f..dd46db9 100644
--- a/hw/xen.h
+++ b/hw/xen.h
@@ -25,11 +25,7 @@  extern int xen_allowed;
 
 static inline int xen_enabled(void)
 {
-#if defined(CONFIG_XEN_BACKEND) && !defined(CONFIG_NO_XEN)
     return xen_allowed;
-#else
-    return 0;
-#endif
 }
 
 int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num);