mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +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:
@@ -931,7 +931,7 @@ bool has_rt_vm(void)
|
||||
}
|
||||
}
|
||||
|
||||
return ((vm_id == CONFIG_MAX_VM_NUM) ? false : true);
|
||||
return (vm_id != CONFIG_MAX_VM_NUM);
|
||||
}
|
||||
|
||||
void make_shutdown_vm_request(uint16_t pcpu_id)
|
||||
|
Reference in New Issue
Block a user