hv: fix 'Space missing before or after binary operator'

This patch adds the necessary space before or after binary operator.

v1 -> v2:
 * minor fix related to integer
   [i - 1] ====> [i - 1U]

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
Shiqing Gao
2018-12-03 13:29:01 +08:00
committed by wenlingz
parent e32b2b4c11
commit b38629b85e
9 changed files with 13 additions and 17 deletions

View File

@@ -50,7 +50,7 @@ static void prepare_bsp_gdt(struct acrn_vm *vm)
return;
} else {
gdt_base_hva = hpa2hva(gdt_base_hpa);
gdt_len = ((size_t)boot_context.gdt.limit + 1U)/sizeof(uint8_t);
gdt_len = ((size_t)boot_context.gdt.limit + 1U) / sizeof(uint8_t);
(void )memcpy_s(gdt_base_hva, gdt_len, hpa2hva(boot_context.gdt.base), gdt_len);
}