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 <wei.tan@intel.com>
Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
Tw 2018-12-20 09:47:01 +08:00 committed by wenlingz
parent 897ffa2739
commit 725e1921e5

View File

@ -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;
}