mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-01 08:56:55 +00:00
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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user