|
@@ -785,7 +785,6 @@ static int ipmmu_clear_mapping(struct ipmmu_vmsa_domain *domain,
|
|
pud_t *pud;
|
|
pud_t *pud;
|
|
pmd_t *pmd;
|
|
pmd_t *pmd;
|
|
pte_t *pte;
|
|
pte_t *pte;
|
|
- int ret = 0;
|
|
|
|
|
|
|
|
if (!pgd)
|
|
if (!pgd)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
@@ -847,8 +846,7 @@ static int ipmmu_clear_mapping(struct ipmmu_vmsa_domain *domain,
|
|
done:
|
|
done:
|
|
spin_unlock_irqrestore(&domain->lock, flags);
|
|
spin_unlock_irqrestore(&domain->lock, flags);
|
|
|
|
|
|
- if (ret)
|
|
|
|
- ipmmu_tlb_invalidate(domain);
|
|
|
|
|
|
+ ipmmu_tlb_invalidate(domain);
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|