From 99e2326582f3fa01c2737a8851d3fda6d46b0661 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 7 Aug 2019 12:12:00 +0200 Subject: [PATCH] AMD/IOMMU: drop stray "else" 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 Acked-by: Andrew Cooper --- xen/drivers/passthrough/amd/pci_amd_iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/drivers/passthrough/amd/pci_amd_iommu.c b/xen/drivers/passthrough/amd/pci_amd_iommu.c index d3c57d7f95..8d4a5fbc37 100644 --- a/xen/drivers/passthrough/amd/pci_amd_iommu.c +++ b/xen/drivers/passthrough/amd/pci_amd_iommu.c @@ -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; -- 2.30.2