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
This commit is contained in:
parent
6a4e177114
commit
49fa9881b2
|
@ -25,11 +25,7 @@ extern bool xen_allowed;
|
||||||
|
|
||||||
static inline bool xen_enabled(void)
|
static inline bool xen_enabled(void)
|
||||||
{
|
{
|
||||||
#if defined(CONFIG_XEN_BACKEND) && defined(CONFIG_XEN)
|
|
||||||
return xen_allowed;
|
return xen_allowed;
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num);
|
int xen_pci_slot_get_pirq(PCIDevice *pci_dev, int irq_num);
|
||||||
|
|
Loading…
Reference in New Issue