diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2024-08-29 21:06:19 -0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-09-04 11:39:01 +0200 |
commit | 485534bfccb23e1c3e5915aca9acce1ecdc07a3f (patch) | |
tree | 9d48152c92b62d711f9f6081567ec059c46a4772 /tools/perf/util/python.c | |
parent | 9ac0b3380acdece01fa1b361687e3cd988831c55 (diff) |
iommu/amd: Remove conditions from domain free paths
Don't use tlb as some flag to indicate if protection_domain_alloc()
completed. Have protection_domain_alloc() unwind itself in the normal
kernel style and require protection_domain_free() only be called on
successful results of protection_domain_alloc().
Also, the amd_iommu_domain_free() op is never called by the core code with
a NULL argument, so remove all the NULL tests as well.
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/10-v2-831cdc4d00f3+1a315-amd_iopgtbl_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/util/python.c')
0 files changed, 0 insertions, 0 deletions