]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Remove protection_domain.dev_cnt variable
authorVasant Hegde <vasant.hegde@amd.com>
Wed, 30 Oct 2024 06:35:47 +0000 (06:35 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 30 Oct 2024 10:06:41 +0000 (11:06 +0100)
commit743a4bae9fa1480e5f6837f6a55be918d6cd0e16
tree0aa3b70456faf3515908e9ba1b0089a19acfc20b
parent2fcab2deebc33640516d9d379b626557a38d5d4f
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 <vasant.hegde@amd.com>
Reviewed-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Joerg Roedel <jroedel@suse.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20241030063556.6104-4-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/iommu.c