"README.md" did not exist on "35a5088d7c86d2b840f0abf43b2ad38632b26221"
Commit 99bb45e6 authored by Paul Durrant's avatar Paul Durrant Committed by Jan Beulich
Browse files

iommu: trivial re-organisation to avoid unnecessary test


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: default avatarPaul Durrant <paul.durrant@citrix.com>
Acked-by: default avatarJan Beulich <jbeulich@suse.com>
parent f3694f3a
......@@ -512,14 +512,14 @@ int __init iommu_setup(void)
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" :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment