From: Stefano Stabellini Date: Mon, 3 Jun 2013 15:38:48 +0000 (+0000) Subject: xen: simplify xen_enabled X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~900^2~59^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c266080276d56b4a56273035ded8b3c023ab5cf;p=sdk%2Femulator%2Fqemu.git xen: simplify xen_enabled No need for preprocessor conditionals in xen_enabled: xen_allowed is always defined. Signed-off-by: Stefano Stabellini CC: qemu-stable@nongnu.org (cherry picked from commit 49fa9881b2358e390e9e9466ddde74e995927efa) Signed-off-by: Michael Roth --- 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);