hv: coding style clean-up related to Boolean

While following two styles are both correct, the 2nd one is simpler.
	bool is_level_triggered;
	1. if (is_level_triggered == true) {...}
	2. if (is_level_triggered) {...}

This patch cleans up the style in hypervisor.

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
This commit is contained in:
Shiqing Gao
2020-11-27 09:58:57 +08:00
committed by wenlingz
parent 74203e39d9
commit 6f10bd00bf
6 changed files with 6 additions and 6 deletions

View File

@@ -586,7 +586,7 @@ static int32_t add_vm_memory_region(struct acrn_vm *vm, struct acrn_vm *target_v
* TODO: We can enforce WB for any region has overlap with pSRAM, for simplicity,
* and leave it to SOS to make sure it won't violate.
*/
if (hpa == PSRAM_BASE_HPA && is_psram_initialized == true) {
if ((hpa == PSRAM_BASE_HPA) && is_psram_initialized) {
prot |= EPT_WB;
}
/* create gpa to hpa EPT mapping */