OSDN Git Service

iommu/qcom: Simplify a test in 'qcom_iommu_add_device()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 16 Sep 2019 20:29:36 +0000 (22:29 +0200)
committerJoerg Roedel <jroedel@suse.de>
Tue, 15 Oct 2019 09:50:27 +0000 (11:50 +0200)
commitda6b05dce2a9c69880c3b9838938d5714703e80d
tree66ee711b4eeb774e59165231b09b6ca4b07d8ea8
parent4f5cafb5cb8471e54afdc9054d973535614f7675
iommu/qcom: Simplify a test in 'qcom_iommu_add_device()'

'iommu_group_get_for_dev()' never returns NULL, so this test can be
simplified a bit.

This way, the test is consistent with all other calls to
'iommu_group_get_for_dev()'.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/qcom_iommu.c