mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-05 19:00:16 +00:00
hv: fix MISRA-C issues related to space or newline
This patch fixes the following issues: - No newline after semi colon. - No space after semi colon in for expression. - No space between if, while, for and expresn. v1 -> v2: * Fix the typo for the for loop change. Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
@@ -255,7 +255,7 @@ int gva2gpa(struct vcpu *vcpu, uint64_t gva, uint64_t *gpa,
|
||||
if (pm == PAGING_MODE_4_LEVEL) {
|
||||
pw_info.width = 9U;
|
||||
ret = local_gva2gpa_common(vcpu, &pw_info, gva, gpa, err_code);
|
||||
} else if(pm == PAGING_MODE_3_LEVEL) {
|
||||
} else if (pm == PAGING_MODE_3_LEVEL) {
|
||||
pw_info.width = 9U;
|
||||
ret = local_gva2gpa_pae(vcpu, &pw_info, gva, gpa, err_code);
|
||||
} else if (pm == PAGING_MODE_2_LEVEL) {
|
||||
|
@@ -327,7 +327,7 @@ static uint8_t dmar_uint_get_msagw(struct dmar_drhd_rt *dmar_uint)
|
||||
uint8_t i;
|
||||
uint8_t sgaw = iommu_cap_sagaw(dmar_uint->cap);
|
||||
|
||||
for (i = 5U; i > 0U;) {
|
||||
for (i = 5U; i > 0U; ) {
|
||||
i--;
|
||||
if (((1U << i) & sgaw) != 0U) {
|
||||
break;
|
||||
|
Reference in New Issue
Block a user