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

@@ -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)