aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-08-18 16:04:51 +0800
committerWill Deacon <will@kernel.org>2021-10-04 12:21:13 +0100
commit59d9bd727495b13292dedee2c6c8c5d80de4d16f (patch)
tree36b658914ff2f5ba651f449a3778dc4a6d7b4a46 /drivers/iommu/amd
parent93f9f7958f12a1703799442011dd5f18db893c13 (diff)
downloadlinux-59d9bd727495b13292dedee2c6c8c5d80de4d16f.tar.gz
iommu/arm-smmu-v3: Properly handle the return value of arm_smmu_cmdq_build_cmd()
1. Build command CMD_SYNC cannot fail. So the return value can be ignored. 2. The arm_smmu_cmdq_build_cmd() almost never fails, the addition of "unlikely()" can optimize the instruction pipeline. 3. Check the return value in arm_smmu_cmdq_batch_add(). Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/r/20210818080452.2079-2-thunder.leizhen@huawei.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/iommu/amd')
0 files changed, 0 insertions, 0 deletions