mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 15:14:27 +00:00
HV:common:fix "expression is not Boolean"
MISRA C explicit required expression should be boolean when in branch statements (if,while...). Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -42,7 +42,7 @@ void vcpu_thread(struct vcpu *vcpu)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (need_reschedule(vcpu->pcpu_id)) {
|
||||
if (need_reschedule(vcpu->pcpu_id) != 0) {
|
||||
/*
|
||||
* In extrem case, schedule() could return. Which
|
||||
* means the vcpu resume happens before schedule()
|
||||
|
||||
Reference in New Issue
Block a user