iommu: Replace iommu_group_device_count() with list_count_nodes()
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 11 May 2023 04:41:59 +0000 (01:41 -0300)
committerJoerg Roedel <jroedel@suse.de>
Tue, 23 May 2023 06:15:50 +0000 (08:15 +0200)
commit4db0e5f8875ef12be6e946770ed7ef0b9c2b80ff
tree95df78af57831970d0671aa08a8fe60595f9cea6
parent32261d10943b7fffa864f9a532e2b40a813df79b
iommu: Replace iommu_group_device_count() with list_count_nodes()

No reason to wrapper a standard function, just call the library directly.

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/1-v5-1b99ae392328+44574-iommu_err_unwind_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/iommu.c