diff options
author | Tom Murphy <murphyt7@tcd.ie> | 2019-08-26 05:48:21 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2019-08-30 16:33:10 +0200 |
commit | d127bc9be856098cc2410c1266ed64e258bc5377 (patch) | |
tree | 8529436a2e80d05ab58681c9da42176e704c1666 /drivers/iommu/iommu.c | |
parent | 6b0c54e7f2715997c366e8374209bc74259b0a59 (diff) | |
download | linux-d127bc9be856098cc2410c1266ed64e258bc5377.tar.bz2 |
iommu: Remove wrong default domain comments
These comments are wrong. request_default_domain_for_dev doesn't just
handle direct mapped domains.
Signed-off-by: Tom Murphy <murphyt7@tcd.ie>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/iommu.c')
-rw-r--r-- | drivers/iommu/iommu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index b6980938882e..66cfacaa483d 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -2200,7 +2200,6 @@ request_default_domain_for_dev(struct device *dev, unsigned long type) mutex_lock(&group->mutex); - /* Check if the default domain is already direct mapped */ ret = 0; if (group->default_domain && group->default_domain->type == type) goto out; @@ -2210,7 +2209,6 @@ request_default_domain_for_dev(struct device *dev, unsigned long type) if (iommu_group_device_count(group) != 1) goto out; - /* Allocate a direct mapped domain */ ret = -ENOMEM; domain = __iommu_domain_alloc(dev->bus, type); if (!domain) @@ -2225,7 +2223,7 @@ request_default_domain_for_dev(struct device *dev, unsigned long type) iommu_group_create_direct_mappings(group, dev); - /* Make the direct mapped domain the default for this group */ + /* Make the domain the default for this group */ if (group->default_domain) iommu_domain_free(group->default_domain); group->default_domain = domain; |