]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Remove dev == NULL checks
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 10 Jan 2025 16:35:01 +0000 (12:35 -0400)
committerJoerg Roedel <jroedel@suse.de>
Fri, 17 Jan 2025 07:59:29 +0000 (08:59 +0100)
commit02bcd1a8b991c6fc29271fa02250bea1b61fb742
treeba8e32a1c2981c56c06fa9fdea69a77e1b6a3665
parentf9b80f941e0e68c3347c5d22a17a0f636a064e2c
iommu/amd: Remove dev == NULL checks

This is no longer possible, amd_iommu_domain_alloc_paging_flags() is never
called with dev = NULL from the core code. Similarly
get_amd_iommu_from_dev() can never be NULL either.

Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/3-v2-9776c53c2966+1c7-amd_paging_flags_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c