Skip to content

Commit d127bc9

Browse files
pippy360joergroedel
authored andcommitted
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 <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 6b0c54e commit d127bc9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/iommu/iommu.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,6 @@ request_default_domain_for_dev(struct device *dev, unsigned long type)
22002200

22012201
mutex_lock(&group->mutex);
22022202

2203-
/* Check if the default domain is already direct mapped */
22042203
ret = 0;
22052204
if (group->default_domain && group->default_domain->type == type)
22062205
goto out;
@@ -2210,7 +2209,6 @@ request_default_domain_for_dev(struct device *dev, unsigned long type)
22102209
if (iommu_group_device_count(group) != 1)
22112210
goto out;
22122211

2213-
/* Allocate a direct mapped domain */
22142212
ret = -ENOMEM;
22152213
domain = __iommu_domain_alloc(dev->bus, type);
22162214
if (!domain)
@@ -2225,7 +2223,7 @@ request_default_domain_for_dev(struct device *dev, unsigned long type)
22252223

22262224
iommu_group_create_direct_mappings(group, dev);
22272225

2228-
/* Make the direct mapped domain the default for this group */
2226+
/* Make the domain the default for this group */
22292227
if (group->default_domain)
22302228
iommu_domain_free(group->default_domain);
22312229
group->default_domain = domain;

0 commit comments

Comments
 (0)