iommu/arm-smmu-v3: Master cannot be NULL in arm_smmu_write_strtab_ent()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 5 Dec 2023 19:14:34 +0000 (15:14 -0400)
committerWill Deacon <will@kernel.org>
Wed, 13 Dec 2023 12:32:19 +0000 (12:32 +0000)
commit12a48fe90d0919e4e594815122403f793a090803
tree0f53eedc03495778fa1aea45d289180d453b5e09
parent57b89048874c9edd4a17f34c126b4a4188b7b444
iommu/arm-smmu-v3: Master cannot be NULL in arm_smmu_write_strtab_ent()

The only caller is arm_smmu_install_ste_for_dev() which never has a NULL
master. Remove the confusing if.

Reviewed-by: Moritz Fischer <mdf@kernel.org>
Reviewed-by: Michael Shavit <mshavit@google.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c