diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 10bdf7ea9564..60ec58bf6701 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@ -5388,10 +5388,7 @@ static int intel_iommu_add_device(struct device *dev) domain_add_dev_info(si_domain, dev); dev_info(dev, "Device uses a private identity domain.\n"); - return 0; } - - return -ENODEV; } } else { if (device_def_domain_type(dev) == IOMMU_DOMAIN_DMA) { @@ -5406,10 +5403,7 @@ static int intel_iommu_add_device(struct device *dev) dev_info(dev, "Device uses a private dma domain.\n"); - return 0; } - - return -ENODEV; } }