iommu/arm-smmu-v3: Make arm_smmu_install_ste_for_dev return void
authorWill Deacon <will.deacon@arm.com>
Wed, 1 Mar 2017 21:11:29 +0000 (21:11 +0000)
committerWill Deacon <will.deacon@arm.com>
Thu, 6 Apr 2017 15:06:43 +0000 (16:06 +0100)
commit67560edcd8e5c57eccec4df562abbfc21c17ad75
tree6efa3bfb9db05e24c7ddeef5c0346e414c451ccc
parent61bc671179f19060be883068b6d3d82ae0b24bc0
iommu/arm-smmu-v3: Make arm_smmu_install_ste_for_dev return void

arm_smmu_install_ste_for_dev cannot fail and always returns 0, however
the fact that it returns int means that callers end up implementing
redundant error handling code which complicates STE tracking and is
never executed.

This patch changes the return type of arm_smmu_install_ste_for_dev
to void, to make it explicit that it cannot fail.

Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c