OSDN Git Service

iommu/arm-smmu: Axe a useless test in 'arm_smmu_master_alloc_smes()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 15 Sep 2019 19:34:01 +0000 (21:34 +0200)
committerWill Deacon <will@kernel.org>
Tue, 1 Oct 2019 11:36:11 +0000 (12:36 +0100)
commitbdde4718aba368c33705ccff8f3e29586d41b69b
treeefb153a35e6ae5ad0f4142a769909d5166c277c3
parent9062c1d0bedacf68d9c92cbd62c62a6fe6f6cebc
iommu/arm-smmu: Axe a useless test in 'arm_smmu_master_alloc_smes()'

'iommu_group_get_for_dev()' never returns NULL, so this test can be removed.

Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm-smmu.c