]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
AMD/IOMMU: drop stray "else"
authorJan Beulich <jbeulich@suse.com>
Wed, 7 Aug 2019 10:12:00 +0000 (12:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Aug 2019 10:12:00 +0000 (12:12 +0200)
The blank line between it and the prior if() clearly indicates that this
was meant to be a standalone if().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/drivers/passthrough/amd/pci_amd_iommu.c

index d3c57d7f959563d0c1b42175f2a684e8418d948c..8d4a5fbc37f40aa378099e704f9c8cb588b61302 100644 (file)
@@ -165,8 +165,8 @@ static int __init iov_detect(void)
     if ( !iommu_enable && !iommu_intremap )
         return 0;
 
-    else if ( (init_done ? amd_iommu_init_interrupt()
-                         : amd_iommu_init(false)) != 0 )
+    if ( (init_done ? amd_iommu_init_interrupt()
+                    : amd_iommu_init(false)) != 0 )
     {
         printk("AMD-Vi: Error initialization\n");
         return -ENODEV;