An 'if ( !iommu_enabled )' followed by an 'if ( iommu_enabled )' with
only a printk() in between seems a little silly. Move the printk() and
use 'else' instead.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
if ( !iommu_intremap )
iommu_intpost = 0;
+ printk("I/O virtualisation %sabled\n", iommu_enabled ? "en" : "dis");
if ( !iommu_enabled )
{
iommu_snoop = 0;
iommu_hwdom_passthrough = false;
iommu_hwdom_strict = false;
}
- printk("I/O virtualisation %sabled\n", iommu_enabled ? "en" : "dis");
- if ( iommu_enabled )
+ else
{
printk(" - Dom0 mode: %s\n",
iommu_hwdom_passthrough ? "Passthrough" :