From 725e1921e55ac78b37c1675044151049ded3fcea Mon Sep 17 00:00:00 2001 From: Tw Date: Thu, 20 Dec 2018 09:47:01 +0800 Subject: [PATCH] hv:vtd: fix MISRA-C violations on comment possibly contains code This patch fix MISRA-C violations in arch/x86/vtd.c on Comment possibly contains code. Tracked-On: #861 Signed-off-by: Tw Acked-by: Anthony Xu --- hypervisor/arch/x86/vtd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hypervisor/arch/x86/vtd.c b/hypervisor/arch/x86/vtd.c index 47c670c1a..6b9bd9d05 100644 --- a/hypervisor/arch/x86/vtd.c +++ b/hypervisor/arch/x86/vtd.c @@ -977,11 +977,8 @@ static int32_t remove_iommu_device(const struct iommu_domain *domain, uint16_t s context_entry->upper = 0UL; iommu_flush_cache(dmar_unit, context_entry, sizeof(struct dmar_context_entry)); - /* if caching mode is present, need to invalidate translation cache */ - /* if(cap_caching_mode(dmar_unit->cap)) { */ dmar_invalid_context_cache_global(dmar_unit); dmar_invalid_iotlb_global(dmar_unit); - /* } */ return 0; }