Skip to content

Commit

Permalink
hv:vtd: fix MISRA-C violations on comment possibly contains code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tw4452852 authored and wenlingz committed Dec 21, 2018
1 parent 897ffa2 commit 725e192
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hypervisor/arch/x86/vtd.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 725e192

Please sign in to comment.