iommu/ipmmu-vmsa: Invalidate TLB after unmapping
[firefly-linux-kernel-4.4.55.git] / drivers / iommu / ipmmu-vmsa.c
index a32d237c0f227242a8e3541b7af60d7c5e68e263..3a61103ef108239b01ab72d4565d0c3bbd73d928 100644 (file)
@@ -785,7 +785,6 @@ static int ipmmu_clear_mapping(struct ipmmu_vmsa_domain *domain,
        pud_t *pud;
        pmd_t *pmd;
        pte_t *pte;
-       int ret = 0;
 
        if (!pgd)
                return -EINVAL;
@@ -847,8 +846,7 @@ static int ipmmu_clear_mapping(struct ipmmu_vmsa_domain *domain,
 done:
        spin_unlock_irqrestore(&domain->lock, flags);
 
-       if (ret)
-               ipmmu_tlb_invalidate(domain);
+       ipmmu_tlb_invalidate(domain);
 
        return 0;
 }