]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/vt-d: Change dmar_ats_supported() to return boolean
authorWei Wang <wei.w.wang@intel.com>
Tue, 13 May 2025 03:07:39 +0000 (11:07 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 16 May 2025 06:49:30 +0000 (08:49 +0200)
commitf3fe7e1830c54abb24fcb0d6d98dd403e3e5fafd
tree8c377c5a2a717fb9e87e6d207dc0d0c5ccc04fa3
parent3df2ebcee9fb3bd2597d1758795471a3a3b2203c
iommu/vt-d: Change dmar_ats_supported() to return boolean

According to "Function return values and names" in coding-style.rst, the
dmar_ats_supported() function should return a boolean instead of an
integer. Also, rename "ret" to "supported" to be more straightforward.

Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Link: https://lore.kernel.org/r/20250509140021.4029303-3-wei.w.wang@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c