Commit b1cf156
iommu/vt-d: Remove unnecessary domain_context_mapped()
The device_domain_info::domain accurately records the domain attached to
the device. It is unnecessary to check whether the context is present in
the attach_dev path. Remove it to make the code neat.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20221118132451.114406-7-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent a820447 commit b1cf156
1 file changed
Lines changed: 3 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | 783 | | |
797 | 784 | | |
798 | 785 | | |
| |||
2097 | 2084 | | |
2098 | 2085 | | |
2099 | 2086 | | |
2100 | | - | |
2101 | | - | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
2105 | | - | |
2106 | | - | |
2107 | | - | |
2108 | | - | |
2109 | | - | |
2110 | | - | |
2111 | | - | |
2112 | | - | |
2113 | | - | |
2114 | | - | |
2115 | | - | |
2116 | | - | |
2117 | | - | |
2118 | | - | |
2119 | | - | |
2120 | | - | |
2121 | | - | |
2122 | | - | |
2123 | | - | |
2124 | 2087 | | |
2125 | 2088 | | |
2126 | 2089 | | |
| |||
4269 | 4232 | | |
4270 | 4233 | | |
4271 | 4234 | | |
| 4235 | + | |
4272 | 4236 | | |
4273 | 4237 | | |
4274 | 4238 | | |
| |||
4277 | 4241 | | |
4278 | 4242 | | |
4279 | 4243 | | |
4280 | | - | |
4281 | | - | |
4282 | | - | |
4283 | | - | |
4284 | | - | |
4285 | | - | |
4286 | | - | |
| 4244 | + | |
| 4245 | + | |
4287 | 4246 | | |
4288 | 4247 | | |
4289 | 4248 | | |
| |||
0 commit comments