summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroshi Doyu <hdoyu@nvidia.com>2013-04-03 15:49:23 +0300
committerHarshada Kale <hkale@nvidia.com>2013-06-10 03:49:06 -0700
commitb2aba65ebf4b722b8ea48f86b27b172e9159f14a (patch)
tree6535e996e8fd7e888020ce72206ca55992988b7a
parent8a697c767b2f532109ea95b48b83437947f9fb5d (diff)
iommu/tegra: smmu: Remove unnecessary check
This sholdn't happen because the previous write doesn't match to the condition. bug 1286500 Change-Id: If80063d8feb8e75e828b5b1d9cbdb3f2f014d79d (cherry picked from commit ac62226fcbfc698a489b4d458e91233a2659c6b8) Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> Reviewed-on: http://git-master/r/234124 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
-rw-r--r--drivers/iommu/tegra-smmu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 5b7fbb9442ce..07ab2b1bf7c8 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -755,8 +755,6 @@ static int __smmu_iommu_map_pfn(struct smmu_as *as, dma_addr_t iova,
if (*pte == _PTE_VACANT(iova))
(*count)++;
*pte = SMMU_PFN_TO_PTE(pfn, as->pte_attr);
- if (unlikely((*pte == _PTE_VACANT(iova))))
- (*count)--;
FLUSH_CPU_DCACHE(pte, page, sizeof(*pte));
flush_ptc_and_tlb(smmu, as, iova, pte, page, 0);
put_signature(as, iova, pfn);