From: Jan Beulich Date: Wed, 7 Aug 2019 10:12:00 +0000 (+0200) Subject: AMD/IOMMU: drop stray "else" X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~1769 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=99e2326582f3fa01c2737a8851d3fda6d46b0661;p=xen.git 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 --- 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;