Commit 743a4ba
iommu/amd: Remove protection_domain.dev_cnt variable
protection_domain->dev_list tracks list of attached devices to
domain. We can use list_* functions on dev_list to get device count.
Hence remove 'dev_cnt' variable.
No functional change intended.
Signed-off-by: Vasant Hegde <[email protected]>
Reviewed-by: Suravee Suthikulpanit <[email protected]>
Reviewed-by: Joerg Roedel <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>1 parent 2fcab2d commit 743a4ba
2 files changed
+1
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
582 | 581 | | |
583 | 582 | | |
584 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2031 | 2031 | | |
2032 | 2032 | | |
2033 | 2033 | | |
2034 | | - | |
2035 | 2034 | | |
2036 | 2035 | | |
2037 | 2036 | | |
| |||
2064 | 2063 | | |
2065 | 2064 | | |
2066 | 2065 | | |
2067 | | - | |
2068 | 2066 | | |
2069 | 2067 | | |
2070 | 2068 | | |
| |||
2237 | 2235 | | |
2238 | 2236 | | |
2239 | 2237 | | |
2240 | | - | |
2241 | | - | |
2242 | | - | |
2243 | 2238 | | |
2244 | 2239 | | |
2245 | 2240 | | |
2246 | 2241 | | |
2247 | 2242 | | |
2248 | 2243 | | |
2249 | | - | |
| 2244 | + | |
2250 | 2245 | | |
2251 | 2246 | | |
2252 | 2247 | | |
| |||
0 commit comments