Skip to content

Commit 1ddb32d

Browse files
committed
iommu/vt-d: Simplify check in identity_mapping()
The function only has one call-site and there it is never called with dummy or deferred devices. Simplify the check in the function to account for that. Fixes: 1ee0186 ("iommu/vt-d: Refactor find_domain() helper") Cc: [email protected] # v5.5 Reviewed-by: Jerry Snitselaar <[email protected]> Acked-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 96d170f commit 1ddb32d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2916,7 +2916,7 @@ static int identity_mapping(struct device *dev)
29162916
struct device_domain_info *info;
29172917

29182918
info = dev->archdata.iommu;
2919-
if (info && info != DUMMY_DEVICE_DOMAIN_INFO && info != DEFER_DEVICE_DOMAIN_INFO)
2919+
if (info)
29202920
return (info->domain == si_domain);
29212921

29222922
return 0;

0 commit comments

Comments
 (0)